Skip to content

Commit

Permalink
MID-7476: adding archetypes for propagations tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
skublik committed Jan 25, 2022
1 parent aa3a388 commit 4fc6cbd
Show file tree
Hide file tree
Showing 7 changed files with 209 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,9 @@ private List<String> getUtilityArchetypesList() {
private List<String> getSystemArchetypesList() {
return Arrays.asList(
SystemObjectsType.ARCHETYPE_VALIDITY_SCANNER_TASK.value(),
SystemObjectsType.ARCHETYPE_TRIGGER_SCANNER_TASK.value());
SystemObjectsType.ARCHETYPE_TRIGGER_SCANNER_TASK.value(),
SystemObjectsType.ARCHETYPE_PROPAGATION_TASK.value(),
SystemObjectsType.ARCHETYPE_MULTI_PROPAGATION_TASK.value());
}

private List<CompiledObjectCollectionView> getNewTaskInfluencesList(List<String> oids) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,24 @@
<collectionRef oid="00000000-0000-0000-0000-000000000531" relation="org:default" type="c:ArchetypeType"/>
</collection>
</objectCollectionView>
<objectCollectionView>
<identifier>propagation-task-view</identifier>
<refreshInterval>30</refreshInterval>
<applicableForOperation>add</applicableForOperation>
<type>TaskType</type>
<collection>
<collectionRef oid="00000000-0000-0000-0000-000000000532" relation="org:default" type="c:ArchetypeType"/>
</collection>
</objectCollectionView>
<objectCollectionView>
<identifier>multi-propagation-task-view</identifier>
<refreshInterval>30</refreshInterval>
<applicableForOperation>add</applicableForOperation>
<type>TaskType</type>
<collection>
<collectionRef oid="00000000-0000-0000-0000-000000000533" relation="org:default" type="c:ArchetypeType"/>
</collection>
</objectCollectionView>
<objectCollectionView>
<identifier>certification-tasks-view</identifier>
<refreshInterval>30</refreshInterval>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
<identifier>activity</identifier>
<visibility>hidden</visibility>
</panel>
<panel>
<identifier>taskBasic</identifier>
<default>true</default>
</panel>
</objectDetails>
</adminGuiConfiguration>
</archetypePolicy>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
<identifier>activity</identifier>
<visibility>hidden</visibility>
</panel>
<panel>
<identifier>taskBasic</identifier>
<default>true</default>
</panel>
</objectDetails>
</adminGuiConfiguration>
</archetypePolicy>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
<!--
~ 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 oid="00000000-0000-0000-0000-000000000532"
xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3">
<name>Provisioning propagation task (one resource)</name>
<archetypeType>auxiliary</archetypeType>
<archetypePolicy>
<display>
<label>Provisioning propagation task (one resource)</label>
<pluralLabel>
<orig>Provisioning propagation task (one resource)</orig>
<translation>
<key>TaskHandlerSelector.provisioning.task.propagation.handler</key>
</translation>
</pluralLabel>
<icon>
<cssClass>fa fa-save</cssClass>
<color>green</color>
</icon>
</display>
<adminGuiConfiguration>
<objectDetails>
<type>TaskType</type>
<panel>
<identifier>activity</identifier>
<panel>
<identifier>work</identifier>
<container>
<identifier>work-propagation</identifier>
<path>activity/work/propagation</path>
</container>
</panel>
</panel>
</objectDetails>
</adminGuiConfiguration>
</archetypePolicy>
<assignment>
<assignmentRelation>
<holderType>TaskType</holderType>
</assignmentRelation>
</assignment>
<inducement>
<focusMappings>
<mapping>
<strength>weak</strength>
<expression>
<value>System</value>
</expression>
<target>
<c:path>category</c:path>
</target>
</mapping>
</focusMappings>
</inducement>
<inducement>
<focusMappings>
<mapping>
<strength>weak</strength>
<source>
<path>activity</path>
</source>
<expression>
<value>http://midpoint.evolveum.com/xml/ns/public/provisioning/task/propagation/handler-3</value>
</expression>
<target>
<c:path>handlerUri</c:path>
</target>
<condition>
<script>
<code>
activity == null
</code>
</script>
</condition>
</mapping>
</focusMappings>
</inducement>
</archetype>
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
<!--
~ 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 oid="00000000-0000-0000-0000-000000000533"
xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3">
<name>Provisioning propagation task (many resources)</name>
<archetypeType>auxiliary</archetypeType>
<archetypePolicy>
<display>
<label>Provisioning propagation task (many resources)</label>
<pluralLabel>
<orig>Provisioning propagation task (many resources)</orig>
<translation>
<key>TaskHandlerSelector.provisioning.task.propagation.multi.handler</key>
</translation>
</pluralLabel>
<icon>
<cssClass>fa fa-save</cssClass>
<color>green</color>
</icon>
</display>
<adminGuiConfiguration>
<objectDetails>
<type>TaskType</type>
<panel>
<identifier>activity</identifier>
<panel>
<identifier>work</identifier>
<container>
<identifier>work-multiPropagation</identifier>
<path>activity/work/multiPropagation</path>
</container>
</panel>
</panel>
</objectDetails>
</adminGuiConfiguration>
</archetypePolicy>
<assignment>
<assignmentRelation>
<holderType>TaskType</holderType>
</assignmentRelation>
</assignment>
<inducement>
<focusMappings>
<mapping>
<strength>weak</strength>
<expression>
<value>System</value>
</expression>
<target>
<c:path>category</c:path>
</target>
</mapping>
</focusMappings>
</inducement>
<inducement>
<focusMappings>
<mapping>
<strength>weak</strength>
<source>
<path>activity</path>
</source>
<expression>
<value>http://midpoint.evolveum.com/xml/ns/public/provisioning/task/propagation/multi-handler-3</value>
</expression>
<target>
<c:path>handlerUri</c:path>
</target>
<condition>
<script>
<code>
activity == null
</code>
</script>
</condition>
</mapping>
</focusMappings>
</inducement>
</archetype>
Original file line number Diff line number Diff line change
Expand Up @@ -19292,6 +19292,20 @@
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="00000000-0000-0000-0000-000000000532">
<xsd:annotation>
<xsd:appinfo>
<jaxb:typesafeEnumMember name="ARCHETYPE_PROPAGATION_TASK"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="00000000-0000-0000-0000-000000000533">
<xsd:annotation>
<xsd:appinfo>
<jaxb:typesafeEnumMember name="ARCHETYPE_MULTI_PROPAGATION_TASK"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="00000000-0000-0000-0000-000000000170">
<xsd:annotation>
<xsd:appinfo>
Expand Down

0 comments on commit 4fc6cbd

Please sign in to comment.