Apama Documentation : Developing Apama Applications : Developing Apama Applications in Event Modeler : Using Event Modeler : Working in the Rules panel : Adding a condition to a rule
Adding a condition to a rule
Suppose that when you have finished the condition defined in Using functions in rules you realize that you only want it to evaluate to true if a condition scenario variable is also true. So you want to add an and with another condition clause to the end of the condition you have already specified, without having to revert it all and start all over again. You can do this as described below.
To add a condition to a rule
1. Select the entire condition by moving the cursor over the condition, holding down the right mouse button, and dragging until all elements are highlighted. This displays a popup menu of alternatives for the selected elements.
Now, remember these two alternatives:
[...]'and/or' 'condition'
'condition' 'and/or' [...]
What this means is that if you select one of those alternatives, because the selection you are replacing is already a 'condition' in itself, it will not be thrown away but will be retained within the new replacement in place of the [...].
So, if you choose the [...] 'and/or' 'condition' alternative, the current selection will be retained and will replace [...].
2. Do that to see this result:
(price is less than or equal to (25.36 * ABS (quantity))) 'and/or' 'condition'
If you had chosen 'condition' 'and/or' [...], then 'condition' 'and/or' would have been added to the front of your previous elements, not after.
This replacement mechanism is automatically provided wherever an alternative for the current selection embeds an element of the same type as the selection itself.
Copyright © 2013-2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback