Search
Windows Server

BizTalk 2010 Recipes : Orchestrations - Using the Parallel Action Shape

Published 1 min readBy Programming4us Editorial Team

1. Problem

From within an orchestration, you would like to complete numerous activities at the same time and independently of one another.

2. Solution

A Parallel Action shape may be added to an orchestration to implement the concurrent processing of all parallel branches when the orchestration executes. Processing beyond the parallel branches will not occur until all branches of the Parallel Action shape have completed. The following steps outline how to add a Parallel Action shape to your orchestration.

  1. Open the project containing the orchestration.

  2. Open the orchestration.

  3. Select the Parallel Action shape from the toolbox, and drag it to the appropriate location within the orchestration.

  4. Select the Parallel Action shape and update its properties.

    1. Change the default name if desired.

    2. Add a description if desired.

  5. To add an additional branch, right-click the Parallel Action shape, and select New Parallel Branch.

NOTE

To delete a branch, right-click the branch, and select Delete. To delete the Parallel Action shape, right-click the shape, and select Delete.

3. How It Works

You can use the Parallel Action shape within an orchestration to create concurrent processing. Care should be taken when accessing data from within parallel actions to avoid contention or deadlock situations. This can also be avoided by using synchronized scopes in conjunction with parallel actions. Additionally, if an orchestration is terminated from within a branch of a Parallel Action shape, the process will terminate regardless of the status of the processing within the other parallel branches.