Adding Condition Logic

Procedure

  1. On the Palette, click XOR Data Gateway and place your cursor on the sequence flow between the AddMsgInfoToEvent and DeleteRecord.
  2. Add a Sequence flow from the XOR Gateway to the Save Record
(by selecting the Sequence Flow tool under connections in the Palette).
  3. Mark the transition from the XOR gateway to SaveRecord as default by selecting the transition and then selecting Default in the Properties Windows, Sequence Flow, General tab. The transition to the SaveRecord task will then get a small slash to indicate it is default.
  4. Click the sequence flow to the DeleteRecord task.
    1. In the Properties Window, General tab, set the Sequence Flow Type to Conditional.
    2. Set the Script Defined As to Java.
    3. Click on Select Class and select a java class and click OK.
    4. Select the method from the Method drop-down list.

Look of the workflow at this point