Adding Conditional Transitions to Edit Report

You now have the Edit Report activity, but there is no path that will take the instance to it. In this task we add two conditional transitions which are are taken when the expense report is not accepted the Check Company Policy activity, or not approved at the Review Report activity.

To add the two conditional transitions:

  1. Right-click on the Check Company Policy automatic activity, and click Add conditional transition (Conditional Transition icon 
				).
  2. click on the Edit Report activity. The Transition from Activity dialog box appears.
  3. In the Name field, enter Not Accepted.
  4. In the Properties page, enter the following in the conditional expression text box, capitalizing as shown:
    result != "Accepted"
  5. Click OK. The Not Accepted conditional transition is added.
  6. Drag the Not Accepted conditional transition so it becomes curved, as shown in the figure below. To be able to select the transtion, you may need to drag the uncoditional transition out of the way first. To straighten any curved transition, right-click on the transition and uncheck the Curve option.
  7. Follow steps 1 through 5 to add a conditional transition as follows:
    From To Name Expression
    Review Report Edit Report Not Approved report.isApproved != true

After completing this task, your process design diagram should look like this:

Figure 1. Expense Report process with additional conditional transitions