Processing a page flow that starts with the BPEL process
Before you begin
- Because the next activity in the page flow is made available in
the transaction of the activity that completed, the transactional
behavior of all the human task activities must be set to
participates. - To ensure that the next human task in the page flow can be found at run time, transaction
boundaries are not introduced between tasks. To do this, for example, make sure that any invoke
activities between two human task activities also have the transactional behavior set to
participates, and that they do not use services, such as wait activities, that require a transaction boundary.Note: Business Process Choreographer dynamically introduces non-modeled transaction boundaries as required, for example as deadlock prevention, which affect the behavior of the completeAndClaimSuccessor API. Normally, the API claims the next human task in the page flow, if it is available in the transaction of the activity that completed. However, if a transaction boundary exists, the API request returns without claiming the next task.Moreover, where and how transaction boundaries are added can change in the future, for example after a product update, or after a fix is installed. Therefore, even though you model transaction boundaries by setting the transactional behavior property on activities, adherence to these boundaries is not guaranteed.
About this task
- Client-side page flows, where the navigation between the different pages is realized using client-side technology, such as a multi-page Lotus Forms form.
- Server-side page flows are realized using a BPEL process and a set of human tasks that are modeled so that subsequent tasks are assigned to the same person.
- You need to invoke services between steps carried out in a user interface, for example, to retrieve or update data.
- You have auditing requirements that require CEI events to be written after a user interface interaction completes.
A typical example of a page flow is the ordering process in an online bookstore, where the purchaser completes a sequence of actions to order a book. This sequence of actions can be implemented as a series of human task activities (to-do tasks). If the purchaser decides to order several books, this is equivalent to starting an order process, and claiming the next human task activity.
The initiateAndClaimFirst API starts the page flow, that is, it starts the specified process and claims the first human task activity in the sequence of activities. It returns information about the claimed activity, including the input message to be worked on.
The completeAndClaimSuccessor API then completes the human task activity and claims the next one in the same process instance for the logged-on person. The API returns information about the next claimed activity, including the input message to be worked on.
Compare this example with the example of a page flow that is started by a to-do task.
This topic only applies to BAW, and is located in the BAW repository. Last updated on 2025-03-13 12:15