Functions


BPEL 2.0 provides two XPath extension functions, each in a specific namespace:

  • namespace URI: "http://docs.oasis-open.org/wsbpel/2.0/process/executable"

  • usual prefix: bpel

doXSLTransform

The function doXSLTransform lets you transform data from an XML source, as described in Chapter 8.

 object bpel:doXslTransform(string, node-set,(string, object)*) 

The parameters are

  • a path to the XSL

  • a variable that holds the XML source; or an XPath expression that resolves to an element node, which may contain descendants

  • optionally, pairs of parameter names and values for use by the XSL

The function returns a result document.

Here's an example.

 bpel:doXslTransform     ("urn:stylesheets:AddNewVehicle.xsl", $AllVehicles,      "NewVehicle", $OneVehicle) 

getVariableProperty

The function getVariableProperty returns the value of a property. The value may be of a simple or complex type. We describe getVariableProperty in Chapter 7.

 object bpel:getVariableProperty(string, string) 

The two parameters must be quoted strings. The first is a variable name, and the second is a property alias.

Here's an example.

 theAddress = bpel:getVariableProperty              ("quoteRequest", "emailAddr") 




SOA for the Business Developer. Concepts, BPEL, and SCA
SOA for the Business Developer: Concepts, BPEL, and SCA (Business Developers series)
ISBN: 1583470654
EAN: 2147483647
Year: 2004
Pages: 157
Authors: Ben Margolis

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net