eXTReMe Tracker

Thursday, September 11, 2008

Multiple operations in a BPEL process

Creating multiple operations inside a single portType in a BPEL process:

1) Prepare a WSDL with two operations(OP1 and OP2) in a portType ( they can have the same/different request and response messages)
2) Open JDeveloper
3) Create an empty BPEL process
4) Create a partner link with the WSDL created above and name it as 'client'
5) Add a 'Pick' activity and delete the 'OnAlarm' activity
6) Double click 'Pick' activity and select 'Create Instance'
OnMessage1:
7) Double click 'OnMessage' activity and select 'client' with OP1
8) Add an 'Assign' activity to set the output variable to 'OP1' and use that in reply to 'client' OP1
OnMessage2:
8) Add another 'OnMessage' activity and set it to OP2 of 'client'.
9) Add an 'Assign' activity to set the output variable to 'OP2' and use that in reply to 'client' OP2
10)Deploy the process
11)Start soapUI and invoke 'OP1' operation to get 'OP1' as the response and vice-versa.

Note: Oracle BPEL PM Console does not support multiple operations yet. It invokes only one operation irrespective of the operation selected, as of 10.1.3.3.1.
Not knowing this fact, I got stuck with the BPEL Console for a day and then I tried in soapUI and figured out that there is a bug in the BPEL console jsp.


1 comment:

Unknown said...

Here's the bug opened by Oracle: 7448946