[midPoint-git] [Evolveum/midpoint] c928af: Add assignment path vars to scripting rules exec
mederly
noreply at github.com
Sat Mar 29 17:08:56 CET 2025
Branch: refs/heads/feature/mid-10532
Home: https://github.com/Evolveum/midpoint
Commit: c928affa39006013a45b17e1e05410d77c94133b
https://github.com/Evolveum/midpoint/commit/c928affa39006013a45b17e1e05410d77c94133b
Author: Pavol Mederly <mederly at evolveum.com>
Date: 2025-03-29 (Sat, 29 Mar 2025)
Changed paths:
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/policy/scriptExecutor/ActionContext.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/policy/scriptExecutor/ScriptingTaskCreator.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/policy/scriptExecutor/SynchronousScriptExecutor.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/util/ModelImplUtils.java
M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/rbac/AbstractRbacTest.java
M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/rbac/TestRbac.java
A model/model-intest/src/test/resources/rbac/metarole-detecting-modifications.xml
M model/model-intest/src/test/resources/rbac/role-detecting-modifications.xml
Log Message:
-----------
Add assignment path vars to scripting rules exec
When having <scriptExecution> policy action, the assignment path
variables (i.e., assignmentPath, [magic] assignment, focusAssignment,
thisAssignment, immediateAssignment, immediateRole) are available to
the script being executed, as well as to scripts used when resolving
filters and customizing the background task (if applicable).
To be reviewed: what about background execution? These variables cannot
be present there, at least not in their full form (because of the need
to serialize/deserialize them).
Moreover, the sets of variables present at the above mentioned places
(script, filter resolution, task customization) were unified. Previously
not all of them were available in all three places.
Related to MID-10532.
To unsubscribe from these emails, change your notification settings at https://github.com/Evolveum/midpoint/settings/notifications
More information about the midPoint-svn
mailing list