N1 Grid Service Provisioning System 5.0 XML Schema Reference Guide

Plan-Only Steps for Composite Plans

This section describes the steps that can only be used within a composite plan. The attributes of some of the steps that are contained within a composite plan can include references to plan variables and parameters.

<execSubplan> Step

The <execSubplan> step executes another plan. The <execSubplan> step can only appear as the child of the <compositeSteps> element.

The <execSubplan> step has an optional child element, <argList>, which is a list of arguments to pass to the called plan. For each parameter in the <paramList> section of the called plan for which no default value is declared, a corresponding argument must be declared by this <argList>. See <argList> Element. If specified, this element can only appear one time.

Attributes for the <execSubplan> Step

The <execSubplan> step has the following attributes:

<inlineSubplan> Step

The <inlineSubplan> step executes a sequential series of steps. This step can only appear as the child of the <compositeSteps> element.

An <inlineSubplan> step is similar to an <execSubplan> step. However, while the <execSubplan> steps names an external plan to execute, the <inlineSubplan> step directly contains the plan to execute as a child element.

The primary difference between an inline subplan and a top-level plan is that inline subplans are not saved as distinctly named entities. Thus, inline subplans cannot be externally referenced by <execSubplan> steps. Top-level plans are distinctly named entities and can be referenced from <execSubplan> steps.

Inline subplans are useful when the content is concise, directly tied to the context and logic of the calling plan, and does not otherwise make sense as a stand-alone plan. In these cases, having all steps in one self-contained unit can facilitate plan maintenance and readability.

Unlike top-level plans, inline subplans cannot declare parameters. They implicitly inherit the parameters and variables of all enclosing plans. They can declare additional variables that are local to the inline subplan, which can hide variables and parameters of the enclosing plans. A subplan variable hides the variable of an enclosing plan if both have the same name. In this case, only the value of the variable that is declared by the innermost subplan is available for use by its steps.

The <inlineSubplan> step consists of an optional <varList> followed by one additional child element, either <simpleSteps> or <compositeSteps> depending on the type of inline subplan: simple or composite.

The <inlineSubplan> step has the following child elements:

Attributes for the <inlineSubplan> Step

The <inlineSubplan> step has the following attributes: