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

Creating a BPEL Process

This section guides you through creating a BPEL process using the WSO2 Developer Studio and the BPS tooling plug-in. 

  1. Install the tooling plug-in if you have not already done so. 
  2. To create a business process, follow the steps below. 
    1. Right-click on the Project Explorer and go to New > Project.
    2. Clicking project opens the New Project window
    3. Click Next and client creates the BPEL project.
  3. Generate a business process with the synchronous business process template. Use the following steps to accomplish this.
    1. Select a wizard from the subsequent screen that appears after creating the BPEL project.
    2. Select the New BPEL Process File and click Next.
    3. In the resulting screen, enter the BPEL Process Name, the Namespace and the Template as shown in the below image.
    4. Click Next.
    5. Create a WSDL file by filling out the Service NamePort NameService Address and Binding Protocol as shown in the following image.
    6. Click Next and finish the process. The following screen appears.
  4. Drag and drop ReceiveAssign and Reply activities such that you get the following process.
  5. Click on the Assign activity and assign ‘input’ from the input variable to ‘result’ from the output variable.
  6. Similarly, complete the next ReceiveAssign and Reply activity by using the same partner link ‘client’. Now you have completed the process logic. Next you need to add the correlation set to two Receive activities.
  7. Create a correlation set by clicking on the ‘+’ sign next to Correlation Sets.
  8. Select the correlation set and select Properties and click Add.
  9. You see the Select a Property wizard. Click New.
  10. Give a Name to our correlation property and select Simple Type under the Defined As section.
  11. Select the data type for our correlation property. In this instance, you have selected a ‘Simple Type’.
  12. Click Browse. Now we have to select the data type from XML schema types. Select string as our type.
  13. Click OK. Now a pop up box appears and asks for the prefix to be used to the XML schema namespace. Enter the prefix as ‘xsd’. 
  14. Click on the New button next to Alias to define the property alias. The Create Property Alias window appears.
  15. Select Message Type from the available options.
  16. Click on Browse. Also select input string for query.
  17. Click OK and finish the process.
  18. Now you have finished defining the correlation set, property and alias. 

    Note that you selected only one alias here because you are using the same message for both receive activities.

    Now we have to add the correlation set to the receive activities. On the first Receive activity, which creates the process instance, initialize the correlation set. On the next, Receive activity; it is not necessary to initialize the correlation set. Click on the Receive activity, and go to Properties, click Add and select the correlation set. Since there is only one correlation set, it is the only one that appears. On the Initiation section select Yes.

  19. On the next correlation activity, set Initiation to No.
  20. Next, generate the deployment descriptor.
  21. Next select all files related to the project and create a ZIP package.  Upload the BPEL package. Once the process is deployed successfully; we can use tryit to send a request to the process.
  22. Now navigate to the instance view for this process. The instance has completed up to the Reply activity and is waiting on the next Receive activity. Under the correlation properties; you can see the value sent in the request.
  23. Now send the same request from tryit again. The process instance has gone to the completed state. You can follow the same steps used here to add correlation sets to any asynchronous business process you implement. Correlation sets can be added to ‘receive’, ‘invoke’ and ‘pick’ activities.
com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.