Adding Condition Transitions to Edit Report

You now have the Edit Report activity, but there is no path to take the instance to it. In this task we add two condition transitions: one for when the expense report is not accepted at the Check Company Policy activity, and the other for when it is not approved at the Review Report activity.

To add the two condition transitions:

  1. Right-click on the Check Company Policy automatic activity, and click Add conditional transition (Condition 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 tab page, enter the following in the condition expression text box, capitalizing as shown:
    result != "Accepted"
  5. Click OK. The Not Accepted condition transition is added.
  6. Drag the Not Accepted condition transition so it becomes curved, as shown in the figure below. To be able to select the transition, you may need to drag the unconditional transition out of the way first. To straighten any curved transition, right-click on the transition and uncheck Curve.
  7. Follow steps 1 through 5 to add a condition 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 condition transitions