Using a Condition

You can create a condition to make a choice between two or more than two sequences at runtime.

See Also
EKL Action Operation
Sequence Combination Operation
  1. Click the type you have created and click Sequence Combination to create a combination of operations.
  2. Click EKL Action .
    The KnowledgeLanguage.1 tab opens.
  3. Double-click the type and click Sequence Combination twice to create two sequences. Rename the first sequence to FirstSequence and the second one to SecondSequence. Note that both sequences must be at the same level. One sequence will be executed depending on the value of a Mass parameter.
  4. Double-click KnowledgeLanguage.1 in the tree.
  5. In the Attributes tab, click Add. The KnowledgeLanguage.1 tab opens.
    1. Select the Parameter Type from the scrolling list: Boolean.
    2. Click OK when done.
  6. Repeat the above step and change the name of the attribute to OUT_ACT2.
  7. Repeat the above step to create a Mass parameter (Quality: Input, Parameter type: Mass).


  8. In the Definition tab, click Edit to edit the rule body. In the Language Editor, enter the following rule and click OK when done.


  9. Click OK when done.
  10. Expand the KnowledgeLanguage.1 and the sequences nodes.
  11. Right-click the Activity variable of FirstSequence, select Activity Object > Link To and click Out_ACT1 located below the EKL Action node.
  12. Right-click the Activity variable of SecondSequence, select Activity Object > Link To and click Out_ACT2 located below the EKL Action node.