Initializing a variable with an inline from-spec

In the previous recipe, we explored how variables are initialized in a BPEL process. The recipe explained the initialization of variables using XML literals. This recipe explains the alternative way of initializing variables with an inline from-spec. The difference between the two mentioned recipes is that the initialization of a variable over an XML literal is performed from the assign activity, while initialization over an inline from-spec is performed at the variable definition.

Tip

The initialization of variables using an inline from-spec is only supported for BPEL 2.0 processes!

Getting ready

For this recipe, we will create an empty synchronous BPEL 2.0 process. We will reuse the request and response ...

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.