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 ...

Get BPEL and Java Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.