Application Delivery Management
Application Modernization & Connectivity
IT Operations Management
CyberRes
File |
---|
Header |
---|
user.csv |
id,givenName,name,mail |
group.csv |
id,name,description |
usergroup.csv |
userid,groupid |
<add class-name="ToDo">
<add-attr attr-name="id">
<value type="state">USR1234</value>
</add-attr>
<add-attr attr-name="name">
<value type="state">aName</value>
</add-attr>
<add-attr attr-name="givenName">
<value type="state">aGiveName</value>
</add-attr>
<add-attr attr-name="mail">
<value type="state">aMail@comp.com</value>
</add-attr>
</add>
<add class-name="ToDo">
<add-attr attr-name="id">
<value type="state">GRP1234</value>
</add-attr>
<add-attr attr-name="name">
<value type="state">grpName</value>
</add-attr>
<add-attr attr-name="description">
<value type="state">grpDescription</value>
</add-attr>
</add>
<add class-name="ToDo">
<add-attr attr-name="id">
<value type="state">USR1234</value>
</add-attr>
<add-attr attr-name="name">
<value type="state">aName</value>
</add-attr>
<add-attr attr-name="givenName">
<value type="state">aGiveName</value>
</add-attr>
<add-attr attr-name="mail">
<value type="state">aMail@comp.com</value>
</add-attr>
<add-attr attr-name="fileName">
<value type="state">User_2015_SEPT_09.csv</value>
</add-attr>
</add>
<do-set-op-class-name>
<arg-string>
<token-lower-case>
<token-replace-first regex="(?i)([^_] )(_?.*\.csv)" replace-with="$1">
<token-op-attr name="fileName"/>
</token-replace-first>
</token-lower-case>
</arg-string>
</do-set-op-class-name>
<add class-name="user">
<add-attr attr-name="id">
<value type="state">USR1234</value>
</add-attr>
<add-attr attr-name="name">
<value type="state">aName</value>
</add-attr>
<add-attr attr-name="givenName">
<value type="state">aGiveName</value>
</add-attr>
<add-attr attr-name="mail">
<value type="state">aMail@comp.com</value>
</add-attr>
<add-attr attr-name="fileName">
<value type="state">User_2015_SEPT_09.csv</value>
</add-attr>
</add>
if (typeof id !== 'undefined'){id} else {userid}
<do-set-op-association>
<arg-association>
<token-class-name/>
<token-text xml:space="preserve">=</token-text>
<token-association/>
</arg-association>
</do-set-op-association>
<do-reformat-op-attr name="groupid">
<arg-value type="dn">
<token-text xml:space="preserve">group=$current-value$</token-text>
</arg-value>
</do-reformat-op-attr>
<do-set-xml-attr expression='$current-op//add-attr[@attr-name="groupid"]/value' name="association-ref">
<arg-string>
<token-op-attr name="groupid"/>
</arg-string>
</do-set-xml-attr>