Generate BPEL - Part 2. Create Business Process Diagram for Customer Service
Business Process Model Notation (BPMN) is defacto standard of designing business process. Business Process Execution Language (BPEL) is popular language for workflow engine to execute workflow. This tutorial teaches how to generate BPEL from BPMN's business process diagram and WSDL diagram.
- Right click on Model Explorer, and select Model > New Model, and name the model as CustomerProcess.

- Right click on the CustomerProcess, select Diagram > Business Process Modeling > Business Process Diagram to create a new business process diagram.

- Create the following business process diagram.

- Right click on the blank area of the business process diagram and select BPEL Diagram.

- Right click on Customer pool and select Internal.

- Open the specification dialog of Customer pool and switch to Partner Link tab, then specify the following configuration.
- WSDL : CustomerLT
- Partner Link Type : CustomerPLT
- My Role : CustomerServiceProvider

- Press Apply button to commit, and then switch to Variables tab.

- Add a new variable, with name as Notice and select CustomerLT > <WSDLMessage> Invoice in Message field. Press OK to commit.

- Create another variable, name it as Invoice, and select CustomerLT > <WSDLMessage> Invoice in Message field. Press OK to commit.
- Switch to Correlation Sets tab in pool's specification dialog, and press the Add button to create a correlation set.

- Switch to Properties tab of the correlation sets specification dialog, and set the SessionID as Selected. Press OK to commit.

- Press OK to close the specification dialog of Customer pool.
- Open the specification dialog of Receive Notice start event, and press the ... button next to Trigger field.

- Switch to BPEL tab, and specify the following configuration
- Partner Link : Customer
- Operation : sendNotice
- Variable : Notice

- Press Apply to commit, then switch to Correlations tab, press the Add button to create a correlation.
- Switch to BPEL tab in the correlation specification dialog and specify the following details
- Initiate : true
- Set : Set
- Pattern : in

- Open the specification dialog of Reply Notice task, and press the ... button next to Type field, and then switch to BPEL tab.
- Specify the following details inside the BPEL tab
- Reply : true
- Partner Link : Customer
- Operation : sendNotice
- Variable : Notice

- Press OK to commit.
- Open the specification dialog of Receive Invoice task, and press the ... button next to Type field, then switch to BPEL tab and specify the following details
- Partner Link : Customer
- Operation : sendInvoice
- Variable : Invoice

- Oepn the specification dialog of Reply Invoice, and press the ... button next to Result field, then switch to BPEL tab and specify the following details
- Reply : true
- Partner Link : Customer
- Operation : sendInvoice
- Variable : Invoice

Rate this Article
Click on one of the stars below to rate this article from 1 (lowest) to 5 (highest).
One Moment Please
Thanks for rating this article.
Comments (1)
written by Quratulann on May 12, 2010
Hello:
I was trying to do the tutorial. I am using visual paradigm 7.2 enterprise edition (Build sp2_20100507. Everything was going smooth but there is a problem at step 15 when I try to switch to the correlations tab. There is no correlations tab in the Message Trigger Specification Window?? I don't know how to create a correlation set with this situation.
Regards