Skip to content

Instantly share code, notes, and snippets.

@mrvcyln
Created May 13, 2020 13:53
Show Gist options
  • Save mrvcyln/9c61803aa83a587ad38c8b0b27de81cc to your computer and use it in GitHub Desktop.
Save mrvcyln/9c61803aa83a587ad38c8b0b27de81cc 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>extension/identifier</q:path>
<expression>
<script>
<code>parent_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>c:identifier</q:path>
<expression>
<script>
<code>org_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