Share via


Provisioning Schema::repeat

Element that defines a procedure execution to repeat. The number of repetitions is specified by a data source whose address is described by the source and (optionally) sourcePath attributes. The data source must contain a numeric value. This element is part of the provisioning schema of Microsoft Provisioning Framework (MPF).

Arguments

Input Argument Description

ifNull

Optional. Enumeration that specifies what happens if the node specified by attributes source and sourcePath does not exist.

  • "fail" (default): Returns a failure.

  • "skip": Skips the current execution loop.

  • "ignore": Executes the associated procedure once.

source

Required. Context node for locating the sourcePath node in the Requests [HMC SDK] XML:

sourcePath

Optional. XPath for the element and attribute that specify the number of repetitions.

Remarks

No remarks.

Sample Code

Example XML Request

<request> 
  <data> 
    <user name="joe" retryCount="1000" status="notSignedUp" /> 
  </data> 
  <procedure> 
    <execute namespace="Hotmail" procedure="Signup User"> 
      <before source="data" sourcePath="user" destination="executeData" /> 
      <repeat source="data" sourcePath="user/@retryCount" /> 
      <when source="data" sourcePath="user/[@status='notSignedUp' ]" /> 
    </execute> 
    <execute namespace="Error Namespace" procedure="ReportError"> 
      <executeData> 
        <errorContext description="Failed while signing up the user./> 
      </executeData> 
      <when source="data" sourcePath="user/[@status='notSignedUp' ]" /> 
    </execute> 
  </procedure> 
</request>

Applies To

Provisioning Schema; Provisioning Schema::execute; Provisioning Schema::queue; Provisioning Schema::transform

See also

Tasks

Provisioning Schema::execute
Provisioning Schema::queue
Provisioning Schema::transform
Provisioning Schema::data
Provisioning Schema::procedureData
Provisioning Schema::forEach