You can use WebLogic Workshop to create queries (written in the XQuery language) for transformations in business processes and Web services.
For more information on transformations in Web services (where they are also called XQuery maps), see Transforming XML Messages with XQuery Maps.
If your application requires more complex queries than what can be generated by WebLogic Workshop, you can edit and enhance the generated queries directly in WebLogic Workshop.
When WebLogic Workshop is used to create business processes, queries are generated for the following cases:
These queries are written in the XQuery language. The XQuery language, defined by the World Wide Web Consortium (W3C), provides a vendor independent language for the query and retrieval of XML data.
To learn about the XQuery language, see the XQuery 1.0: An XML Query Language Specification - W3C Working Draft 16 August 2002 at http://www.w3.org/TR/2002/WD-xquery-20020816. The WebLogic Integration XQuery engine conforms to the August 16, 2002 draft of the XQuery Specification.
As part of the process of adding a Decision node to business process, a customized XQuery expression is generated by WebLogic Workshop. When the business process is run, the generated XQuery expression is run against the data document and based on the result of that XQuery, as shown in the following diagram:
The branching occurs in the Decision node of a business process.
A customized XQuery expression is generated by WebLogic Workshop for the transformation of data. Using XQueries, WebLogic Integration can perform complex data transformation from typed non-XML (MFL) to XML, XML to non-XML, or even non-XML to non-XML. When the business process is run, the generated XQuery expression is run against the source document, which transforms the data from the original document (valid to the source schema if typed) to the resulting document (valid to the target schema if typed), as shown in the following diagram:
A customized XQuery expression is generated by WebLogic Workshop as part of the process of adding a For Each node. When the business process is run, the customized XQuery expression creates a list of typed data elements for the For Each loop. The For Each loop in the business process iterates through the set of typed data elements produced by the XQuery. In each iteration, the node(s) contained in the For Each loop are executed, as shown in the following diagram:
Transforming Data Using XQuery
Guide to Building Business Processes
Tutorial: Building Your First Data Transformation
Transforming XML Messages with XQuery Maps
![]() |
![]() |