Conditions element COND
Condition has syntax of comparing two values with operator. The values can be rule parameters, AD field values or simple text values. Conditions are evaluated as part of elements TEST, CHANGE and DELETE to define conditions under which rule actions are processed.
Conditions are using following operators:
= equal to
EQ equal to
/= not equal
NE not equal
EXISTS
EX – exists
NOTEXISTS
NX – not exists
NOTBLANK
NB – not blank
~= match regular expression
REGEXP_MATCH match regular expression
RM match regular expression
!~ do not match regular expression
NM do not match regular expression
NOT_REGEXP_MATCH do not match regular expression
IN compares one value with set of values, one record from the set of values equals to the value
NI compares one value with set of values, the set of values does not contain the value
Regular expression are using PHP PCRE regular expression syntax.
The condition operator in COND need two blank characters, one blank char before and one blank character after.
Example: testing whether application owner is user P390R
Or
Example: testing applications that there is no operation with number 002
<COND>adopno /= 002 </COND>
Or
<COND>adopno NE 002 </COND>
Example: Testing that at application exists at least one operation
Or
Example: Testing Group Definition is not blank
Or
Example: comparing param value with values loaded from lookup, load PAR5 with values from lookup table, if the workstation name equals to the one of the values from PAR5 print warning message
Last updated