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:
-
Right-click on the Check Company Policy automatic activity, and click Add
conditional transition
(
).
-
click on the Edit Report activity.
The
Transition from Activity dialog box appears.
-
In the Name field, enter Not Accepted.
-
In the Properties tab page, enter the following in the condition
expression text box, capitalizing as shown:
result != "Accepted"
-
Click OK.
The Not Accepted condition transition is added.
-
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.
-
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