Creating an Interpreted Transition
(Short description required.)
To create a conditional transition, you need to use Gateway: Conditionally split/join flows based on data to link one activity to two or more activities. (You can also define multiple conditions for the same activity by using multiple Gateways).
To define a simple conditional transition:
Procedure
Result
Similarly, you can create multiple conditions, and enter the condition code for each.
The format of the condition is:
<Rule>
<Parameter direction="..." type="..." eval="..." name="...">...</Parameter>
<Parameter direction="..." eval="..." type="..." name="..." source="...">...</Parameter>
...
<Condition format="bsh"><![CDATA[ ...</Condition>
</Rule>
Inside the CDATA section, include the java code to be executed. The only requirement is that it needs to have to assign a boolean variable name 'result' a value. This value of this variable will decide whether the transition will be taken or not. The corresponding 'result' parameter must always be present in the Rule tag.