-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MID-9533: fix closing approval case with 'skip' outcome for last stage
- Loading branch information
Showing
9 changed files
with
138 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
model/workflow-impl/src/test/resources/miscellaneous/role-approve-with-skip-last-stage.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<!-- | ||
~ Copyright (c) 2010-2019 Evolveum and contributors | ||
~ | ||
~ This work is dual-licensed under the Apache License 2.0 | ||
~ and European Union Public License. See LICENSE file for details. | ||
--> | ||
|
||
<role oid="8b928d45-bb91-4a02-8418-6ae0d3b6a1d3"> | ||
<name>role-approve-with-skip-last-stage</name> | ||
<assignment> | ||
<policyRule> | ||
<name>skip-2-stage</name> | ||
<policyConstraints> | ||
<assignment> | ||
<operation>add</operation> | ||
<operation>modify</operation> | ||
</assignment> | ||
</policyConstraints> | ||
<policyActions> | ||
<approval> | ||
<compositionStrategy> | ||
<order>20</order> | ||
</compositionStrategy> | ||
<approvalSchema> | ||
<stage> | ||
<name>Stage 1</name> | ||
<evaluationStrategy>firstDecides</evaluationStrategy> | ||
<approverRef oid="00000000-0000-0000-0000-000000000002" relation="default" type="UserType"/> | ||
</stage> | ||
</approvalSchema> | ||
</approval> | ||
<approval> | ||
<compositionStrategy> | ||
<order>30</order> | ||
</compositionStrategy> | ||
<approvalSchema> | ||
<stage> | ||
<name>Stage 2</name> | ||
<outcomeIfNoApprovers>skip</outcomeIfNoApprovers> | ||
</stage> | ||
</approvalSchema> | ||
</approval> | ||
</policyActions> | ||
|
||
</policyRule> | ||
<activation> | ||
<effectiveStatus>enabled</effectiveStatus> | ||
</activation> | ||
</assignment> | ||
</role> | ||
|