1. DescriptionThe action http://www.n3phele.com/iterator executes one or more instances of a set of actions. The actions run in parallel or serially, based on their defined dependencies. The set of instances are dependent on the iterator action, other actions in the command and each each other, and terminated by a http://www.n3phele.com/join action.. The iterator will create "n" instances of the actions in the chain, where "n" can either be a constant or expression. One use of the iterator is to perform a command execution action on each of a set of VMs.
The fields of the action are:
2. Input ParametersThe input parameters specify the characteristics of the iterator, including size and a number of virtual machine related parameters that are useful to the execution chain, as follows:
3. Output ParametersThe output parameters specify characteristics of the interator, as follows:
4. Iterator action processing and parametersThe iterator scans all its dependent actions looking for actions with a name that ends in "-0", and is generally of the form basename-0, where basename is a valid action name. These actions are replicated n times, and in each instance an input parameter type Long named "i" is created, and set to the instance number from 0 to n-1. The name of the replicated instance is altered, replacing the suffix -0 to form the name basename-i. The join action which shares the basename of the iterated actions is updated so that it is dependent on the n instances. |
Figure 1. Example
|