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.
Open the project containing the orchestration.
Select the Parallel Action shape from the toolbox, and drag it to the appropriate location within the orchestration.
Select the Parallel Action shape and update its properties.
Change the default name if desired.
Add a description if desired.
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.