Everything you need to get started.
chainedexecution 09/06/2008,03:44 23.67 Kb
This example illustrates how Intalio|BPMS supports what BPEL4People calls 'chained execution', ie the ability for users to go from one form directly to another according to a process flow. This version has been updated for Intalio|BPMS 5.0.
Michael Smith logs in Intalio|BPMS Workflow UI to request a product from the online store. After he selects a product, a new form shows up asking for the shipping address. After submitting an address, a last form shows up asking for credit card information. Submitting credit card information completes the Store scenario.
This should create a new project called 'ChainedExecution' in your Process Explorer. In the Process Explorer, expand the new ChainedExecution project. This project essentially contains the following files:
All forms have been created with the Form Editor and you may double click on any of the *.xform files to edit them in the Form Editor.
At this point, double-click on the Store.bpm file to open the process model that should show up as in the following screenshot:
This process fully implements the scenario.
The pool at the bottom is the process pool, which generates code. The other pool represents a user who interacts with the Store process.
The shapes have been colored in 3 colors to distinguish which people activity they support:
It is interesting to notice that the People Initiating Process Activity is split in two tasks 'Receive Product Request' and 'Acknowledge Product Request'. The reason is that before we return the response for acknowledging this activity, we actually need to create the next task, so that we get the task ID for the next task and pass it in our response. Indeed, for the 'Select Item' form to be chained to the next form, we must provide the task ID of the next task in the response. This task ID is provided to us in the createTaskResponse message when creating the task in 'Request Address'.
If you select the 'Acknowledge Product Request' task and look at the Mapper, you will indeed see that the taskId element from the createTaskResponse is mapped to an element called nextTaskId in the initProcessResponse message as in the following screenshot. This is where we provide the chained execution information that Intalio|BPMS Workflow needs in order to automatically show the Address form after the user submits a selected product.
To chain one people activity to another, two things must be done:
Intalio|BPMS Workflow uses such information to chain the two people activities.
To deploy this example, simply click the 'Deploy the Diagram to the Server' tool in the toolbar. Make sure both check boxes "" and "" are selected and click Finish.
To run the Store process:
You may now check in the console that indeed a Store process was completed. In fact, you may monitor the Store process execution at anytime in the console. The following screenshot shows a Store process instance when the user is asked to provide his/her shipping address information (the running task is highlighted in dark green).
TODO: ADD SCREENSHOT HERE
Copyright © Intalio, 1999-2010.