# Step 9: Create Quote Document

As a result of the work you did when you designed the Parallel node, at the point at which the business process exits the For Each node, the price quote data are assigned to the priceList variable, and the availability quote data are assigned to the availList variable. Both the priceList and the availList variables are of data type XmlObjectList (a untyped sequences of XML data).

In this step, you first transform the data in the priceList and availList variables from untyped XML data (XmlObjectList) to typed XML (that is, to XML that is valid against the XML Schemas provided in your project). Subsequently, you combine the XML-typed price and availability data to produce a single quote document, which comprises the response your business process sends to the client that invoked it.

Note About Transformations

WebLogic Integration allows you to create Transformations in the following ways:

- Using the node builders in your business process. You are already familiar with creating a Transformation control and transformation methods in this way. RequestQuoteTransformation.dtf was created for you the first time you created a transformation from a node builder, that is, when you needed to map the data types from the Request for Quote message to the input of the taxCalculation control. (To review, see "To Call the Tax Calculation Web Service From Your Business Process" in Step 4: Invoke a Web Service) You subsequently created several additional transformation methods on RequestQuoteTransformation.dtf (and associated XQ files) on Control nodes within the Parallel node you designed.
- By choosing File —> New —> Transformation File from the WebLogic Workshop menu. Transformation files you create in this way can be called from your business process via Control nodes.

The following Transformation files were created using this method, and are provided for you in the tutorial application: PriceAvailTransformations.dtf and TutorialJoin.dtf. You used PriceAvailTransformations.dtf in the previous step (Step 8: Design Parallel Paths of Execution) and you will use it again in this step, as well as TutorialJoin.dtf in this step.

In this step, you design the logic in your business process that creates a single quote document from the price and availability data already calculated. This involves designing Control nodes that call the PriceAvailTransformations.dtf and TutorialJoin.dtf Transformation files.

Note: A description of how to create these Transformation files is outside the scope of this tutorial. However, to learn how to create TutorialJoin.dtf, see Tutorial: Building Your First Data Transformation.

In this step, in which you create a single quote document for a client, you must complete the following tasks:

- Convert Price List to XML Quote Document
- Convert Availability List to XML Quote Document
- Combine Price and Availability Quotes