- the conditions must be evaluated.
- the conditions are displayed
If two conditions have the same sequence number, the evaluation sequence is equal to the sequence in which the user entered or saved the conditions.
Configure Trigger Conditions (datrg1110m000)Use this session to enter one or more conditions for a trigger. You can define multiple separate conditions that are connected via a logical 'And' or via a logical 'Or'. Refer to the online field help for more information. Conditions defined for a trigger will only check the top level component. This session is a modal dialog. When you leave this session and return to the Triggers (datrg1100m000) session, the trigger program is regenerated automatically, if the action settings were changed. Example The following example shows a setup for three triggers. Triggers:
Conditions for 'quotation' trigger:
Note that the condition on Class is only needed if the same trigger can receive events from multiple different classes. Conditions for 'customer' trigger:
Conditions for 'order' trigger:
Sequence Number A number to indicate the sequence in which:
If two conditions have the same sequence number, the evaluation sequence is equal to the sequence in which the user entered or saved the conditions. And/Or The Boolean operator that indicates how a condition is linked
to the previous one:
This field is unused for the first condition. Note that no parentheses () are available for defining conditions. So, a condition such as:
must be defined as:
Condition Type A condition can check either the event type, the class or an
attribute value. Therefore the condition types are :
If you choose a value other than 'Attribute Value', the attribute is irrelevant and cannot be filled. You only need Conditions on class or event type if the same trigger is invoked for events on multiple classes or event types. Attribute The name of the attribute to be checked. Operator The comparison operator that is used for the class, event type
or attribute. Available operators are
Notes regarding the 'Changed' operator:
Value The value that must be checked. If the condition type is 'Event
Type', the value must be 'create', 'change', 'delete' or another event type
that can be input for the trigger. If the condition type is 'Class' the value must be a class that can be used in a trigger. In other cases the value is an attribute value that must be checked. Data Type The type of the attribute used in the condition.
Note You can only edit this field when the condition type is "Attribute Value" and the operator is unequal to "Changed". In all other cases the data type is irrelevant Notes on numbers and strings The following examples show how numbers are handled differently from strings. Conditions on string values:
The same conditions on numeric values:
For strings, leading spaces are relevant, but trailing spaces in the Value field are not taken into account. So a condition myAttribute = " 1234 " is regarded as: myAttribute = " 1234". Notes on specific data types
Complex data types (such XML sub-trees containing text contents) cannot be handled in a condition. Becomes This field indicates when a condition is met:
For detailed information, refer to The 'becomes' setting
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||