Try OpenEdge Now
skip to main content
BPM Events User's Guide
The rule language : Rule structure : Event variables and expressions : Checking the presence of an event attribute
 
Checking the presence of an event attribute
You may need to test in the condition part of a rule whether an event attribute is present or not. Indeed, the structure of events is flexible, and even for a given event type, the content of its context may vary from one instance to the other. The following test detects the presence of an attribute (here, named "attr"), regardless of its value:
*The condition: (EVT_1.attr = nil) is true only if the attribute "attr" is not part of the context of the event EVT_1.
*The condition: (EVT_1.attr != nil) is true only if the attribute "attr" is part of the context of the event EVT_1, regardless of its value.
Do not confuse the keyword nil here with the null value of the event attribute.