# @jpd:xquery Annotation

Precedes the global XQuery definitions in a business process (JPD) file. The definitions are in scope for all XQueries in the business process. Namespaces are declared in the xquery prologue.

Syntax

@jpd:xquery prologue ::

xquery_namespaces_and_function_definitions
::

Where xquery_namespaces_and_function_definitions represents the XQuery namespaces and function definitions specified in the annotation.

Remarks

In WebLogic Workshop, expand the region of code labeled /** Process Language*/ in the Source View for a business process (JPD) to see the Java code that describes the business process you created in the Design View. XQuery statements are written to the JPD file in this region.

The XQuery statements are preceded by the following annotation:

    @jpd:xquery prologue::

For example, when you select a repeating XML node using the For Each node builder, as described in Designing For Each Nodes, an XQuery expression is created in your JPD file. The expression returns the set of XML elements over which the For Each node iterates. XQuery expressions are also written in your JPD file when you create conditions on Decision nodes. XQuery expressions also define the transformations you create between disparate data types using the mapping tool.

Related Topics

To learn about XQueries, see XQuery Reference.

To learn about For Each nodes and Decision nodes, see the following topics:

Looping Through Items in a List

Defining Conditions For Branching

To learn data transformations, see the following topics:

Guide to Data Transformations

Tutorial: Building Your First Data Transformation