Application Delivery Management
Application Modernization & Connectivity
CyberRes by OpenText
IT Operations Management
<nds dtdversion="3.5" ndsversion="8.x">
<source>
<product build="20150722_0750" instance="Workday Rest Driver"
version="1.0.0.0">Identity Manager REST Driver</product>
<contact>NetIQ Corporation.</contact>
</source>
<input>
<driver-operation-data class-name="DIRXML-USER" command="add"
event-id="Workday Rest Driver##11716235148##0" remote-host="7.204.58.32"
url="https://extrldev-identity.ABC.com/DIRXML-USER">
<response>
<header content-type="application/xml"/>
<value><ws:Additional_Information>
<ws:UserId>Rf03677</ws:UserId>
<ws:MailDrop>W0522</ws:MailDrop>
<ws:DistList>2701_Floor2@ABC.com</ws:DistList>
<ws:CFI_LRV_SO_Executive_ID>015004</ws:CFI_LRV_SO_Executive_ID>
<ws:MailDrop_Desc>Floor 2_testforIDM</ws:MailDrop_Desc>
<ws:Org_Unit>ABC Technology Services</ws:Org_Unit>
<ws:Organization>Applications</ws:Organization>
<ws:Business_Unit>Office</ws:Business_Unit>
<ws:JobProfile_Desc>Engineer
6-E_testforIDM</ws:JobProfile_Desc>
</ws:Additional_Information></value>
</response>
</driver-operation-data>
</input>
</nds>
<rule>
<description>Parse REST Response in Policy Example</description>
<comment name="author" xml:space="preserve">Geoffrey Carman</comment>
<comment name="version" xml:space="preserve">1</comment>
<comment name="lastchanged" xml:space="preserve">Feb 7, 2017</comment>
<conditions>
<and>
<if-operation mode="nocase" op="equal">driver-operation-data</if-operation>
</and>
</conditions>
<actions>
<do-set-local-variable name="XML" scope="policy">
<arg-node-set>
<token-xml-parse>
<token-xpath expression="response/value"/>
</token-xml-parse>
</arg-node-set>
</do-set-local-variable>
<do-for-each>
<arg-node-set>
<token-xpath expression="$XML/*/*"/>
</arg-node-set>
<arg-actions>
<do-set-local-variable name="ATTR-NAME" scope="policy">
<arg-string>
<token-xpath expression="local-name($current-node)"/>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="VALUE" scope="policy">
<arg-string>
<token-xpath expression="$current-node/text()"/>
</arg-string>
</do-set-local-variable>
<do-add-dest-attr-value name="$ATTR-NAME$">
<arg-value type="string">
<token-text xml:space="preserve">$VALUE$</token-text>
</arg-value>
</do-add-dest-attr-value>
</arg-actions>
</do-for-each>
</actions>
</rule>
<ws:Additional_Information>
<ws:UserId>Rf03677</ws:UserId>
<ws:MailDrop>W0522</ws:MailDrop>
<ws:DistList>2701_Floor2@ABC.com</ws:DistList>
<ws:CFI_LRV_SO_Executive_ID>015004</ws:CFI_LRV_SO_Executive_ID>
<ws:MailDrop_Desc>Floor 2_testforIDM</ws:MailDrop_Desc>
<ws:Org_Unit>ABC Technology Services</ws:Org_Unit>
<ws:Organization>Applications</ws:Organization>
<ws:Business_Unit>Office</ws:Business_Unit>
<ws:JobProfile_Desc>Engineer 6-E_testforIDM</ws:JobProfile_Desc>
</ws:Additional_Information>
"local-name($current-node)"
<nds dtdversion="3.5" ndsversion="8.x">
<source>
<product build="20150722_0750" instance="Workday Rest Driver" version="1.0.0.0">Identity Manager REST Driver</product>
<contact>NetIQ Corporation.</contact>
</source>
<input>
<driver-operation-data class-name="DIRXML-USER" command="add" event-id="Workday Rest Driver##11716235148##0" remote-host="7.204.58.32" url="https://extrldev-identity.ABC.com/DIRXML-USER">
<response>
<header content-type="application/xml"/>
<value><ws:Additional_Information>
<ws:UserId>Rf03677</ws:UserId>
<ws:MailDrop>W0522</ws:MailDrop>
<ws:DistList>2701_Floor2@ABC.com</ws:DistList>
<ws:CFI_LRV_SO_Executive_ID>015004</ws:CFI_LRV_SO_Executive_ID>
<ws:MailDrop_Desc>Floor 2_testforIDM</ws:MailDrop_Desc>
<ws:Org_Unit>ABC Technology Services</ws:Org_Unit>
<ws:Organization>Applications</ws:Organization>
<ws:Business_Unit>Office</ws:Business_Unit>
<ws:JobProfile_Desc>Engineer6-E_testforIDM</ws:JobProfile_Desc>
</ws:Additional_Information></value>
</response>
</driver-operation-data>
<modify class-name="DIRXML-USER" event-id="Workday Rest Driver##11716235148##0">
<modify-attr attr-name="UserId">
<add-value>
<value type="string">Rf03677</value>
</add-value>
</modify-attr>
</modify>
<modify class-name="DIRXML-USER" event-id="Workday Rest Driver##11716235148##0">
<modify-attr attr-name="MailDrop">
<add-value>
<value type="string">W0522</value>
</add-value>
</modify-attr>
</modify>
<modify class-name="DIRXML-USER" event-id="Workday Rest Driver##11716235148##0">
<modify-attr attr-name="DistList">
<add-value>
<value type="string">2701_Floor2@ABC.com</value>
</add-value>
</modify-attr>
</modify>
<modify class-name="DIRXML-USER" event-id="Workday Rest Driver##11716235148##0">
<modify-attr attr-name="CFI_LRV_SO_Executive_ID">
<add-value>
<value type="string">015004</value>
</add-value>
</modify-attr>
</modify>
<modify class-name="DIRXML-USER" event-id="Workday Rest Driver##11716235148##0">
<modify-attr attr-name="MailDrop_Desc">
<add-value>
<value type="string">Floor 2_testforIDM</value>
</add-value>
</modify-attr>
</modify>
<modify class-name="DIRXML-USER" event-id="Workday Rest Driver##11716235148##0">
<modify-attr attr-name="Org_Unit">
<add-value>
<value type="string">ABC Technology Services</value>
</add-value>
</modify-attr>
</modify>
<modify class-name="DIRXML-USER" event-id="Workday Rest Driver##11716235148##0">
<modify-attr attr-name="Organization">
<add-value>
<value type="string">Applications</value>
</add-value>
</modify-attr>
</modify>
<modify class-name="DIRXML-USER" event-id="Workday Rest Driver##11716235148##0">
<modify-attr attr-name="Business_Unit">
<add-value>
<value type="string">Office</value>
</add-value>
</modify-attr>
</modify>
<modify class-name="DIRXML-USER" event-id="Workday Rest Driver##11716235148##0">
<modify-attr attr-name="JobProfile_Desc">
<add-value>
<value type="string">Engineer 6-E_testforIDM</value>
</add-value>
</modify-attr>
</modify>
</input>
</nds>