Invoking third-party libraries from BPEL 1.1 process
This recipe explains how to include the code for invoking third-party libraries via the <bpelx:exec> tag in the source view.
Getting ready
We will amend the JDeveloper project from the Adding third-party libraries to JDeveloper projects recipe. We create an empty BPEL 1.1 process and leave the request and response messages unchanged.
How to do it…
To invoke a third-party library from the <bpelx:exec> tag, perform the following steps:
Open the empty BPEL 1.1 process. Since the output variable is not initialized yet, add the
assignactivity first. The following is the code for theassignactivity:<assign name="Assign1" xml:id="id_11"> <copy xml:id="id_12"> <from expression="string('')" xml:id="id_13"/> <to variable="outputVariable" part="payload" query="/client:processResponse/client:result" xml:id="id_14"/> </copy> </assign>Simply initialize the output part with an empty string.
Further...