
You can define conditions at various points in the process editor to control processing depending on the result of the condition. At these points, for example, during the definition of a switch, the system automatically displays the condition editor.
You can insert comments to ensure that conditions remain clear and easy to understand. You can also display a where-used list for the expressions used.
Expressions
You can use the following expressions in conditions:
Relational Operators
The following table shows the available relational operators:
| Operator | Meaning | Remarks |
|---|---|---|
|
|
Equals |
|
|
!= |
Does not equal |
|
|
|
Less than |
|
|
|
Less than or equal to |
|
|
|
Greater than |
|
|
|
Greater than or equal to |
|
|
CP |
Matches pattern |
c1 matches pattern c2 To specify pattern c2, you can use normal characters and the following wildcard characters: * (asterisk) for any string + (plus sign) for any single character |
|
NP |
Does not match pattern |
c1 does not match c2 c1 NP c2 is equivalent to NOT (c1 CP c2) |
|
CE |
Table contains element |
c1 contains c2 The multiline element (multiline expression) c1 contains c2. |
|
NE |
Table does not contain element |
c1 does not contain c2 The multiline element (multiline expression) c1 does not contain c2. |
|
EX |
Object/element exists |
Element is in container or referenced element exists |
|
NX |
Object/element does not exist |
Element is not in container or referenced element does not exist |
Logical Operators
| Operator | Meaning | Remarks |
|---|---|---|
|
& |
And |
Binds more strongly than |, but less than ! |
|
| |
Or |
Binds less strongly than & and ! |
|
! |
Not |
Binds more strongly than & and | ! must be followed by a parenthesis ( ). The operator relates to the whole parenthesis. |
The following conditions mean the same:
The Condition Variables screen area contains all container elements that are visible for the condition: container elements of the same block, the parent block, or the process container.
Define Alias for X Path Expressions
You can define additional alias names, which are only valid within the condition. You have to define such an alias name if you want to use an XPath expression in a condition.
See: Using the Expression Editor
Using Context Objects
If corresponding context objects are defined, you can use these directly in a condition. The Context Objects screen area displays all messages for which context objects are defined.
A context object is displayed as follows in a condition:
<Container element>.<Namespace prefix>:<Context object name>
<Containerelement>: Container element that references the message for which the context object is defined.
<Namespace prefix>: Abbreviation for the namespace. The system assigns this abbreviation automatically. To display the full name, choose Namespace Prefix in the menu of the Context Objects screen area. You can also define your own abbreviations.
Access Multiline Container Elements
Accesses the n-th element of the multiline container element. n is a constant of type xsd:integer.
Accesses the lines of the multiline container element that index_containerelement delivers. index_containerelement is a container element of type xsd:integer.
Define a Condition
You can enter operators, condition variables, and context objects by using the keyboard, or drag them to the correct position by using the mouse.
Ctrl + Space
The condition editor automatically checks the syntax of the condition and displays any error messages and information about correcting errors in the lower screen area on the left. You can also start the syntax check manually, if required.