Using the utility functionality
Oracle SOA Suite defines a set of utility functions to perform various operations. However, there is no unified place where we find the utility functions. In this recipe, we will learn how to format a message with the ora:format
utility function and then implement the same functionality inside the Java Embedding activity.
Getting ready
To start, we will use the BPEL_and_Java_1_1
process. We change the schema definition of the response message. Open the BPEL_and_Java_1_1.xsd
file and change the response part of the element:
<element name="processResponse"> <complexType> <sequence> <element name="resultFmtBPEL" type="string"/> <element name="resultFmtJava" type="string"/> </sequence> </complexType> </element>
Open the BPEL_and_Java_1_1
process and place a new assign activity (FormatBPEL
) into it. The code for the assign activity is as follows...