This topic describes how to use the Orchestration Sequence editor Order Item Selector area XQuery tab to write an expression that specifies which node-set to use from the customer order as order items and has the following characteristics:
Context: The input document for the Order Item Selector XQuery is the customer order. For more information about typical customer order structures, see OSM Concepts.
Prolog: You can declare the customer order namespace in the XQuery prolog.
Body: The XQuery body must specify the customer order node-sets that OSM then uses as order items.
The following example shows an order item selector XQuery where the <salesOrderLine> node-set is specified. OSM can now use the data in the <salesOrderLine> node-set in the incoming customer order in the order items. There can only be one node-set selected per sequence.
declare namespace im="http://xmlns.oracle.com/InputMessage"; .//im:salesOrderLine