A Receive Task is a simple task that waits for the arrival of a certain message, i.e., the process will stay in this wait state until a specific message is received by the engine, which triggers the continuation of the process. The sample related to this task is the BuyProduct.bar
found in the <BPS-HOME>/repository/samples/bpmn
directory.
Flow of the sample
This sample executes as follows:
- The user (admin) fills the details of the product, including the product name and quantity.
- The receive task waits for a signal. Once a signal is received by the receive task, the process will continue to the next task.
- The user confirms/gets the product details.
Running the sample
- Follow the steps in Deploying BPMN Samples to deploy the sample using the WSO2 BPS management console.
- Log in to the BPMN Explorer using the admin/admin credentials.
- Access the PROCESSES tab to view the task in the task list.
- Click the Start button next to the receive task sample.
- Once the above step is done, a task appears in the MY TASKS tab.
- Fill the form associated with the task and click Complete.
...