Objective
This sample illustrates <pick/>, where a process instance execution can be specified based on a particular received event. The received event can be <onMessage/> or <onAlarm/>. Additionally, users have to define a correlation set and refer it in each event in order to determine the correct execution path.
Deploying the Sample
WSO2 BPS provides a sample, which can be deployed and executed to understand the Pick construct. Follow the instructions below to deploy and trigger the process.
...
4. Under the "WSDL Details" widget, trigger the process using the "TryIt" link to create an instance of it.
Example Usage
Refer to PickOneWay.zip when going through the following instructions.
Defining correlation set
Code Block | ||
---|---|---|
| ||
<correlationSets> <correlationSetname="CorrelationByDeck"properties="srvns:deck"/> </correlationSets> |
...