# Adding Looping Logic, Parallel Paths . . .

Part III is comprised of Steps 7 through 12. You add more complex business logic to the business process you created in Parts I and Part II. You learn how to create looping logic, design parallel processing nodes, transform the price and availability data from untyped XML data to typed XML, use a File control to write your quote to a file system, and use a Client Response node to return the quote to the client that invoked the business process. The final step in Part III is to run and test the business process you built.

The steps in Part III include:

Step 7: Looping Through Items in a List

Describes how to create the logic to extract a list of items from the Request for Quote document received from a client and performs a set of activities repeatedly, once for each item in the list.

Step 8: Design Parallel Paths of Execution

Describes how to design your business process to execute tasks in parallel. This step also includes instructions about how to design your business process to interact with resources via controls and transform the data exchanged with those controls, as required.

Step 9: Create Quote Document

Describes how to transform the price and availability data from untyped XML data to typed XML, and then combine the price and availability data, which is returned to the Request Quote business process by a number of external services, to produce a single Quote document.

Step 10: Write Quote to File System

Describes how to write business process data to a log using a File control.

Step 11: Send Quote From Business Process to Client

Describes how to send the final quote message from the business process to a client.

Step 12: Run the Request Quote Business Process

Describes how to compile and test the business process you created by following the steps in Part III.