-
Notifications
You must be signed in to change notification settings - Fork 188
/
archetype-project-groups.xml
37 lines (33 loc) · 1.23 KB
/
archetype-project-groups.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!--
~ Copyright (c) 2020 Evolveum and contributors
~
~ This work is dual-licensed under the Apache License 2.0
~ and European Union Public License. See LICENSE file for details.
-->
<archetype xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
oid="a85bddc9-4ff0-475f-8ccc-17f9038d4ce1">
<name>project-groups</name>
<documentation>
"Groups" sub-org for project org.
</documentation>
<inducement>
<focusMappings>
<mapping>
<strength>strong</strength>
<expression>
<script>
<code>
import com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType
ARCHETYPE_PROJECT_OID = '4d3280a1-6514-4984-ac2c-7e56c05af258'
parent = midpoint.findLinkedTarget(OrgType.class, ARCHETYPE_PROJECT_OID)
parent ? parent.name + '_groups' : null
</code>
</script>
</expression>
<target>
<path>name</path>
</target>
</mapping>
</focusMappings>
</inducement>
</archetype>