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 where defines the condition to check. The select nodes are evaluated in the order they appear in the procedure definition.
Parents
Child
where (minOccurs="0" maxOccurs="*")
Attributes
- 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:
- "data" (the request's data node)
- "procedureData" (the called procedure's procedureData node)
- sourcePath
- Optional. XPath for the element and attribute to select.
Example
<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>See also
Top of Page
© 1999-2002 Microsoft Corporation. All rights reserved.