Provisioning Schema::select
Element that defines a named selection for conditional checking. This element is part of the provisioning schema of Microsoft Provisioning Framework (MPF).
The data source for the selection is identified by the source and sourcePath attributes. The child node Provisioning Schema::where defines the condition to check. The select nodes are evaluated in the order they appear in the procedure definition.
Arguments
Input Argument | Description |
---|---|
(minOccurs="0" maxOccurs="*") |
|
defaultCase |
Optional. Default value to be used when none of the where elements within the selection are evaluated. |
ifNullCase |
Optional. Value to assign to the selection when no data node can be resolved using the source and sourcePath attributes. |
name |
Required. Name of the select node; used to reference the node during conditional checking using when nodes. |
source |
Required. Context node for locating the sourcePath node in the request XML:
|
sourcePath |
Optional. XPath for the element and attribute to select. |
Remarks
No remarks.
Sample Code
Example XML Request
<request>
<data>
<user name="joe" type="Administrator" />
</data>
<procedure>
<select name="userType" source="data" sourcePath="user/@type" defaultCase="user" ifNullCase="user">
<where value="Administrator" case="admin" />
</select>
<execute namespace="MyHosting" procedure="AssignAdminRights">
<when select="userType" case="admin" />
</execute>
<execute namespace="Test Namespace" procedure="GrantDomainUserRights">
<when select="userType" case="user" />
</execute>
</procedure>
</request>
Applies To
Provisioning Schema; Provisioning Schema::procedure; Provisioning Schema::try; Provisioning Schema::catch
See also
Tasks
Provisioning Schema::procedure
Provisioning Schema::try
Provisioning Schema::catch
Provisioning Schema::where
Provisioning Schema::data
Provisioning Schema::procedureData