- Print
- DarkLight
Process Example - Test Process
In Comflow Core there is a Process Example called TestProcess. It contains most common features for a process. In the Portal it is found under the Developer/Work List and Processes menu and in the Studio as /net.comactivity.AsynchWorkflow/Processes/TestProcess.awf.
It can be used both to verfify the Comflow setup for Processes, as well as a design example to understand how to design a new Process.
The scenario is that you start a process from a portlet with a set of options to control the Process. The process contains the roles Assigner, Tester, Tester2 and Verifier. The flow is:
- A work item is sent to Assigner to manually assign the roles Tester, Tester2 and Verifier.
- Two work items are sent to Tester and Tester2 for parallel work. A Notification Work Item is sent to Verifier to notify via email that there will be verification work in the future. The work item is then automatically closed.
- When the testing is done, the Verifier gets a Work Item and possibly a sub process is started.
- When the Verification and the possible sub process is finished, the Process ends.
Technically it is the same workflow that is used all the time for user interaction and most of the time the same portlet that is used, where layout is controlled by layout control in the Process.
The scenario contain the following features:
- Starting a process via a workflow action
- Starting a process via a service call
- A work item for manually assigning all roles
- Rules for assigning Assignor role or Assignor as well as Organization Unit
- Creation and control of parallel work items
- Layout control on Work Item Reference
- Wait for single workflow actions as event
- Wait for service call as event
- Wait for multiple events
- Automatic close of work item based on timer
- Start of sub process
- Wait for subprocess end