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).

Parents

execute, queue, transform

Attributes

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 request XML:
  • "data" (the request's data node).
  • "procedureData" (the called procedure's procedureData node)
  • Name of a previously-defined forEach node
sourcePath
Optional. XPath for the element and attribute that specify the number of repetitions. 

Example

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

See also

Customization, XML Schema for Procedures


Up Top of Page
) 1999-2002 Microsoft Corporation. All rights reserved.