O'Reilly logo

BPEL and Java Cookbook by Jurij Laznik

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Initializing a variable with an XML literal

During the initialization phase, the variable receives its initial XML content. This content can be subject to various manipulations during the BPEL process flow. We are able to instantly assign the content of the variable if the source of the data already exists. This recipe explains how to initialize a variable with the XML content.

Getting ready

We create a new synchronous BPEL process (VarInit.bpel). We modify the request and response messages. The request message has the following schema:

<element name = "process">
  <complexType>
    <sequence>
      <element name = "name" type = "string"/>
      <element name = "birthYear" type = "int"/>
    </sequence>
  </complexType>
</element>

We need to provide the name and year of ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required