Difference between revisions of "ExecutionPlan Elements"

From Gcube Wiki
Jump to: navigation, search
(Overview)
(Plan Elements)
Line 17: Line 17:
 
</source>
 
</source>
 
==Flow==
 
==Flow==
 +
The ''Flow'' 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===
 +
<source lang=xml>
 +
<planElement id="element id" name="element name" type="Flow">
 +
  <list>
 +
    <planElement .../>
 +
    <planElement .../>
 +
    <planElement .../>
 +
    ...
 +
  </list>
 +
</planElement>
 +
</source>
 
==Bag==
 
==Bag==
 
==File Transfer==
 
==File Transfer==

Revision as of 14:35, 9 February 2010

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 offered is 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 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>

Bag

File Transfer

Conditional

Loop

Break

Wait

Try Catch Finally

Checkpoint

Processing

Boundary

Web Service

Java Object (POJO)

Shell Script