Skip to content

Instantly share code, notes, and snippets.

@PetrGasparik
Created May 13, 2020 13:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PetrGasparik/92f413ad8e23c7f36c5f601538649a1a to your computer and use it in GitHub Desktop.
Save PetrGasparik/92f413ad8e23c7f36c5f601538649a1a to your computer and use it in GitHub Desktop.
<mapping id="11">
<name>Add Organization</name>
<source>
<name>org_id</name>
<c:path>$focus/extension/identifier</c:path>
</source>
<source>
<name>parent_id</name>
<c:path>$focus/extension/parent_id</c:path>
</source>
<source>
<name>orgName</name>
<c:path>$focus/extension/organizationname</c:path>
</source>
<expression>
<assignmentTargetSearch xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="c:SearchObjectRefExpressionEvaluatorType">
<targetType>c:OrgType</targetType>
<filter>
<q:equal>
<q:path>c:identifier</q:path>
<expression>
<script>
<code>org_id</code>
</script>
</expression>
</q:equal>
</filter>
<createOnDemand>true</createOnDemand>
<populateObject>
<populateItem>
<expression>
<script xsi:type="c:ScriptExpressionEvaluatorType">
<code>org_id</code>
</script>
</expression>
<target>
<c:path>c:identifier</c:path>
</target>
</populateItem>
<populateItem>
<expression>
<script xsi:type="c:ScriptExpressionEvaluatorType">
<code>orgName</code>
</script>
</expression>
<target>
<c:path>name</c:path>
</target>
</populateItem>
<populateItem>
<expression>
<script xsi:type="c:ScriptExpressionEvaluatorType">
<code>orgName</code>
</script>
</expression>
<target>
<c:path>name</c:path>
</target>
</populateItem>
<populateItem>
<expression>
<assignmentTargetSearch xsi:type="c:SearchObjectRefExpressionEvaluatorType">
<targetType>c:OrgType</targetType>
<filter>
<q:equal>
<q:path>org_id</q:path>
<expression>
<script>
<code>parent_id</code>
</script>
</expression>
</q:equal>
</filter>
</assignmentTargetSearch>
</expression>
<target>
<c:path>$focus/assignment</c:path>
</target>
</populateItem>
</populateObject>
</assignmentTargetSearch>
</expression>
<target>
<c:path>$focus/assignment</c:path>
</target>
</mapping>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment