Skip to content

Commit

Permalink
add artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
sfox committed Nov 19, 2021
1 parent 2812ab4 commit 4918913
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions artifacts/resources/schema_handling_fragment.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!-- This fragment is intended to be included in the <schemaHandling> section of your Grouper Resource Configuration
It associates the name of a the Grouper Stem with an archetype that contains inducements
-->
<attribute id="4">
<c:ref xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3">ri:name</c:ref>
<tolerant>true</tolerant>
<exclusiveStrong>false</exclusiveStrong>
<inbound id="5">
<authoritative>true</authoritative>
<exclusive>false</exclusive>
<strength>normal</strength>
<expression>
<asIs xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="c:AsIsExpressionEvaluatorType"/>
</expression>
<target>
<c:path>name</c:path>
</target>
</inbound>
<inbound id="23">
<strength>strong</strength>
<expression>
<script xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="c:ScriptExpressionEvaluatorType">
<code>
import com.evolveum.midpoint.schema.util.*
import com.evolveum.midpoint.schema.constants.*

archetypeOid = 'oid-of-archetype' // Archetype that contains inducements

ObjectTypeUtil.createAssignmentTo(archetypeOid, ObjectTypes.ARCHETYPE, prismContext)
</code>
</script>
</expression>
<target>
<c:path>assignment</c:path>
<set>
<predefined>all</predefined>
</set>
</target>
</inbound>
</attribute>

0 comments on commit 4918913

Please sign in to comment.