Try OpenEdge Now
skip to main content
BPM Events User's Guide
XML messages : XML data conversion : XPath rule condition
 

XPath rule condition

In order to support expressive XPath notation in the rule condition and efficiently extract a precondition that may be used in the lower layer of BPM Events, a new rule condition syntax is introduced. Unless there is correlation, it is sufficient to use only an XPath condition in a rule.
For example,
Rule activated by
  msg of po:purchaseOrder["po:shipTo/po:state = 'NY'"]
then {
  ….
}
The condition is specified in a bracket ‘[’, ‘]’ as a string. This string is any valid XPath notation of boolean value condition. The XPath’s context is under the top element of the XML element type (in the above case, under po:purchaseOrder).
This syntax is similar to a valid XPath expression, po:purchaseOrder[po:shipTo/po:state = 'NY'] except the string quotes.