Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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:

  1. The user (admin) fills the details of the product, including the product name and quantity.
  2. The receive task waits for a signal. Once a signal is received by the receive task, the process will continue to the next task.
  3. The user confirms/gets the product details.

Running the sample

  1. Follow the steps in Deploying BPMN Samples to deploy the sample using the WSO2 BPS management console. 
  2. Log in to the BPMN Explorer using the admin/admin credentials.
  3. Access the PROCESSES tab to view the task in the task list.
  4. Click the Start button next to the receive task sample.
  5. Once the above step is done, a task appears in the MY TASKS tab.
  6. Fill the form associated with the task and click Complete.

...