Creating an XMLIN configuration > Managing patterns, blocks, and fields > Patterns > Triggering an Event using multiple patterns

Triggering an Event using multiple patterns
You can define multiple patterns that you use to set up rules for triggering the XMLIN Event. A rule can be an AND or OR statement, or a combination of both. For example:
Pattern1 OR (Pattern2 AND Pattern3)
To create a rule
1
In the Message view, select the Message node. The Message properties are displayed in the Properties view.
2
In the Rule field, enter the rule.
Example 8
The patterns pizzas and drinks match the elements <pizzas> and <drinks> in the sample below.
...
<pizzas>
  <pizza>Calzone</pizza>
  <pizza>Primavera</pizza>
</pizzas>
<drinks>
  <drink>Manhattan</drink>
</drinks>
...
Rule 1:
pizzas AND drinks
The StreamServer scans the input and finds a match in <pizzas>. The StreamServer continues to scan the input and finds a match in <drinks>. The rule is fulfilled, and the Event is triggered. The Event is triggered once in this scenario.
Rule 2:
pizzas OR drinks
The StreamServer scans the input and finds a match in <pizzas>. The rule is fulfilled, and the Event is triggered. The StreamServer continues to scan the input and finds a match in <drinks>. The rule is fulfilled, and the Event is triggered once more. The Event is triggered twice in this scenario.
 
OpenText StreamServe 5.6 Updated: 2013-03-01