Difference between revisions of "ExecutionPlan Elements"
(→Sequence) |
(→Flow) |
||
Line 18: | Line 18: | ||
==Flow== | ==Flow== | ||
− | The ''Flow'' construct | + | The ''Flow'' construct offers a simple parallelization utility for a set of execution steps. This element is a simple container maintaining a set of sub elements that can be executed in parallel. When executed, the set of sub elements are executed all at once in parallel and the ''Flow'' only completed when all the sub elements that have started are terminated. If one of the elements is terminated with an error, after all the elements have terminated, the exception indicating the error is re-thrown. If more than one elements finished with an error, only the first error found iterating through the set of sub elements is thrown. |
===XML definition=== | ===XML definition=== | ||
<source lang=xml> | <source lang=xml> | ||
Line 30: | Line 30: | ||
</planElement> | </planElement> | ||
</source> | </source> | ||
+ | |||
==Bag== | ==Bag== | ||
The ''Bag'' construct offered is a simple parallelization utility for a set of execution steps. This element is a simple container maintaining a set of sub elements that can be executed in parallel. When executed, the set of sub elements are executed all at once in parallel and the ''Flow'' only completed when all the sub elements that have started are terminated. If one of the elements is terminated with an error, after all the elements have terminated, the exception indicating the error is re-thrown. If more than one elements finished with an error, only the first error found iterating through the set of sub elements is thrown. | The ''Bag'' construct offered is a simple parallelization utility for a set of execution steps. This element is a simple container maintaining a set of sub elements that can be executed in parallel. When executed, the set of sub elements are executed all at once in parallel and the ''Flow'' only completed when all the sub elements that have started are terminated. If one of the elements is terminated with an error, after all the elements have terminated, the exception indicating the error is re-thrown. If more than one elements finished with an error, only the first error found iterating through the set of sub elements is thrown. |
Revision as of 14:55, 9 February 2010
Contents
Overview
All plan elements are automatically assigned with an unique identifier through which they are retrievable and identified. Additionally, all elements can be assigned with a name that they use when emitting progress events. This way the execution monitoring can be made more user friendly.
Plan Elements
Sequence
The Sequence construct offers a simple ordering utility for a set of execution steps. This element is a simple container maintaining the order of execution of its sub elements. When executed, the ordered list of sub elements is executed one after the other and the Sequence element is completed when its last sub-element is completed.
XML definition
<planElement id="element id" name="element name" type="Sequence"> <list> <planElement .../> <planElement .../> <planElement .../> ... </list> </planElement>
Flow
The Flow construct offers a simple parallelization utility for a set of execution steps. This element is a simple container maintaining a set of sub elements that can be executed in parallel. When executed, the set of sub elements are executed all at once in parallel and the Flow only completed when all the sub elements that have started are terminated. If one of the elements is terminated with an error, after all the elements have terminated, the exception indicating the error is re-thrown. If more than one elements finished with an error, only the first error found iterating through the set of sub elements is thrown.
XML definition
<planElement id="element id" name="element name" type="Flow"> <list> <planElement .../> <planElement .../> <planElement .../> ... </list> </planElement>
Bag
The Bag construct offered is a simple parallelization utility for a set of execution steps. This element is a simple container maintaining a set of sub elements that can be executed in parallel. When executed, the set of sub elements are executed all at once in parallel and the Flow only completed when all the sub elements that have started are terminated. If one of the elements is terminated with an error, after all the elements have terminated, the exception indicating the error is re-thrown. If more than one elements finished with an error, only the first error found iterating through the set of sub elements is thrown.
XML definition
<planElement id="element id" name="element name" type="Flow"> <list> <planElement .../> <planElement .../> <planElement .../> ... </list> </planElement>