Launch Workflow Designer
In the Application management page, click on "Launch Workflow Designer" to start Workflow Designer.
Figure 1: Workflow Designer
Create New Process
Double-click on the process to bring up its properties. Rename the process as:
Name: Leave Application Process
Figure 2: Creating a New Process in Workflow Designer
Create Participants by first clicking on the Participant element and then clicking inside the design pane to insert a Participant's swimlane.
Create the following participants:
Figure 3: Creating a New Participant in Workflow Designer
Insert Activities and Transitions
Create activities as required by the process flow. Insert one activity into each Participant's swim lane. Use the Transition element to connect them together.
Figure 4: Adding a New Activity in Workflow Designer
Rename the activities as required.
Name: Submit Leave Application
Name: Approve Leave
Figure 5: Configuring "Submit Leave Application" Activity
Now, we have a process with 2 activities.
Next, we will be defining the business rule by using the Route element in the workflow design. Insert a new Route followed by 2 new Activities, as shown in the figure below.
Figure 6: Adding Route and 2 New Activities
Add start and end bubbles to complete the flow.
Define Route Conditions
Next, we will need to define the conditions of the routing. The following figure explains the routing conditions:
Figure 7: Defining Conditions in Route
Define the first outgoing transition from the Route element with the following attributes:
Figure 8: Configuring Transition to Set Condition
Define the second transition using the following attributes:
Figure 9: Setting a Transition's Condition Type to Otherwise
Define Workflow Variable
A Workflow Variable needs to be declared to make the routing possible. This can be done in the Process Properties dialog box.
Figure 10: Configuring Process Properties and Managing Workflow Variables
Create a new element under Workflow variables and name it "status".
Figure 11: Adding a New Workflow Variable
- Save the Workflow (XPDL file).
- Update via Saved XPDL.
Deploy the updated process flow to the system once you are done. You should see the updated process design in the Manage App page, as shown in the figure below.
Figure 12: Process Management Page