-
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.
Skip assignment approvals on focus deletion
When a focus is going to be deleted, assignment-level approvals are simply skipped. There's no point in approving these changes, as it is not clear what should be done in the case of their rejection. In the need of focus deletion approvals, please use appropriate policy constraints (referring to object deletion). Resolves MID-7912. (cherry picked from commit 43e0eb5)
- Loading branch information
Showing
4 changed files
with
71 additions
and
1 deletion.
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
25 changes: 25 additions & 0 deletions
25
model/workflow-impl/src/test/resources/miscellaneous/role-test380.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,25 @@ | ||
<!-- | ||
~ Copyright (c) 2022 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 xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" | ||
oid="8f39e4ad-298a-4d9a-b793-56ad2f0fc7ce"> | ||
<name>test380</name> | ||
<assignment> | ||
<policyRule> | ||
<policyConstraints> | ||
<assignment> | ||
<operation>delete</operation> | ||
</assignment> | ||
</policyConstraints> | ||
<policyActions> | ||
<approval> | ||
<approverRef oid="00000000-0000-0000-0000-000000000002" type="UserType"/> | ||
</approval> | ||
</policyActions> | ||
</policyRule> | ||
</assignment> | ||
</role> |
14 changes: 14 additions & 0 deletions
14
model/workflow-impl/src/test/resources/miscellaneous/user-test380.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,14 @@ | ||
<!-- | ||
~ Copyright (c) 2022 Evolveum and contributors | ||
~ | ||
~ This work is dual-licensed under the Apache License 2.0 | ||
~ and European Union Public License. See LICENSE file for details. | ||
--> | ||
|
||
<user xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" | ||
oid="1994a4d0-4151-4260-82da-bcd1866c296a"> | ||
<name>test380</name> | ||
<assignment> | ||
<targetRef oid="8f39e4ad-298a-4d9a-b793-56ad2f0fc7ce" type="RoleType"/> | ||
</assignment> | ||
</user> |