Adding the Check Company Policy Activity

In this task you will add an automatic activity which will perform a simple check on the expense report based on a simple rule.

Here, we add the Check Company Policy activity, but we do not implement the rule itself, because in the happy path we assume that the report complies with company policy. We will add other possible paths later on.

To add the Check Company Policy automatic activity:

  1. We will insert the activity in the first automatic activity swimlane, which is to the right of the Employee swimlane. The Begin activity is now in this swimlane. To make some room, click and drag the Begin activity towards the left, to the Employee swimlane, right below the Create Expense Report activity. The Begin activity is now in the Employee swimlane. This has no effect on the behavior of the process, but provides a visual cue that the Employee role initiates the process.
  2. Click on the automatic activity icon (Automatic Activity icon 
				) in the editor toolbar, and insert the automatic activity in the first unlabeled (automatic) swimlane. Note that as you move the activity around, the transition between the Begin and End activities is highlighted in purple. Place the activity right on the transition line. The Activity dialog box appears.
  3. Enter Check Company Policy in the Name field, and click OK. The Check Company Policy automatic activity is added to the process.

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

Figure 1. Process with Check Company Policy activity.