Adding Activities to Process Definition

The series of activities which constitute ACME's support case management contains:

  1. Initialization of a Java object to contain case related data
  2. Creation of a support case on an incoming customer call
  3. Analysis of and providing a solution to the problem,
  4. Delivering a patch to the customer or
  5. Notifying the customer if the search for a solution to this problem has been rejected and
  6. Displaying the input data.

These activities will form the backbone of the definition of the support process and will be labeled as:

  1. Init Data - no user interaction
  2. Enter Data - involves user interaction
  3. Analyze To Solve - involves user interaction
  4. Deliver Patch - involves user interaction
  5. Notify Customer - no user interaction

Create an Application Activity

To create the first activity - Init Data - proceed as follows:

Adding Activity
Figure: Adding an Activity to the Process Definition

! Tip: Another way is to create the activity from the diagram toolbar. By holding the Ctrl key you can draw more than one activity of the same kind (as previously selected).

Changing Properties of an Activity

The properties of an activity describe a number of different issues relevant for the basic characteristics and implementation of this activity. We will confine ourselves to the name and the ID, leaving the explanation of the remaining properties for subsequent sections. Assigning a name and an ID is done analogously to naming a process:

Init Data dialog
Figure: Naming an Activity

In an analogous manner, create the remaining activities:

! Tip: As mentioned before you can create more than one manual activities easily by choosing Activities > Manual Activity from the diagram toolbar palette and then by holding the Ctrl key with subsequently clicking the canvas.

After creation of all the activities your canvas should look like this.

Final State after Creation of Activities.
Figure: Final State after Creation of Activities.

Creating Transitions between Two Activities

Having created all the activities, the modeler has to define their sequence and transitions between these activities, so that they form a directed graph.

To define a transition between two activities:

  1. From the diagram toolbar palette, select Connect.
  2. Click the predecessor activity first.
  3. Click the subsequent activity after.

Create first transition
Figure: Creating a Transition between Activities

! Tip: By holding the Ctrl key you can draw more than one transition.

Now create the following transitions:

Leave the last activity Notify Customer temporarily not included in the series.

When these steps, sketching the initial process flow, are completed, your diagram should be similar to this:

Initial process sketch

! Tip: Be sure to periodically save your process diagram. From the Eclipse main menu use File > Save. This can also be accomplished by pressing the diskette icon on the main toolbar, or using the Ctrl-S key combination.