Working with SOAP Tasks
com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links' is unknown.

Working with SOAP Tasks

BPMN SOAP tasks allow you to invoke SOAP endpoints within your BPMN processes. You can achieve this by adding a SOAP Task and handling the SOAP invocation part in a process implementation. This tutorial simulates the scenario of invoking the echo SOAP service, which is shipped with WSO2 EI by default.

Before you begin,

  • Download the product installer from here, and run the installer.

  • Select the relevant WSO2 Integration Studio based on your operating system and download it from here.
    The path to this folder is referred to as <EI_TOOLING> throughout this tutorial.

Creating the BPMN artifacts

Follow the steps below to create the BPMN artifacts including the SOAP Task.

  1. Create a new BPMN project named SoapTaskBPMN. For instructions, see Creating a BPMN Project.

  2. Create a BPMN Diagram named SoapTask.bpmn. For instructions, see Creating the BPMN Diagram.

  3. Click anywhere on the canvas, go to the Properties tab, and fill in the following details:
    Id               : soapTask
    Name         : SOAP Task Process
    Namespacehttp://wso2.org/bpmn/soapTask

  4. To implement the order approval process, drag and drop a Start Event element, a SOAP Task element, a User Task element and an End Event element to the canvas. 

Configuring the SOAP Task

  1. Select the Properties tab of the REST Task, click General and enter the Name as Echo Request.

  2. In the Properties tab of the SOAP Task, click Main config and update the following: 

Configuring the User Task

  1. Select the Properties tab of the User Task, click General and enter the Name as Echo Response.

  2. Click Properties, click Main config  and give admin as the Assignee

  3. In the Properties tab click Form, click New and add the following.

    You view the field added to the Form of the User Task as shown below.

  4. Press Ctrl+S to save all your artifacts.

Deploying the artifacts

  1. For instructions on creating the deployable artifacts, see Creating the deployable archive.

  2. For instructions on deploying them, see Deploying BPMN artifacts.

Testing the output

  1. If you have not started the business profile previously, you need to start it.

  2. Log in to the BPMN-explorer at https://localhost:9445/bpmn-explorer  using  admin  for both the username and password.

  3. Click PROCESSES in the top menu, and click the Start option of the REST Task Process.


    This creates a Claimable Task.

  4. Click TASKS in the top menu, and then click Claimable Tasks

  5. Click on the new Claimable Task.

    You view the response of the Echo Service.

  6. Click Complete Task, to approve the appointment.

  7. Click TASKS → COMPLETED TASKS to view the completed task.

com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.