[midPoint-git] [Evolveum/midpoint] 56d1ab: Simulate mapping on empty focus if no owner is found
Andrej
noreply at github.com
Mon Feb 23 09:44:25 CET 2026
Branch: refs/heads/feature/t-4184
Home: https://github.com/Evolveum/midpoint
Commit: 56d1ab584afe6ad46484010038fc86925512f0c1
https://github.com/Evolveum/midpoint/commit/56d1ab584afe6ad46484010038fc86925512f0c1
Author: Andrej Zan <andrej.zan at evolveum.com>
Date: 2026-02-23 (Mon, 23 Feb 2026)
Changed paths:
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/mappings/tasks/MappingActivityHandler.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/mappings/tasks/MappingActivityRun.java
M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/tasks/TestMappingSimulationTask.java
M model/model-intest/src/test/resources/tasks/mapping-simulation/accounts.csv
M model/model-intest/src/test/resources/tasks/mapping-simulation/dummy-resource.xml
Log Message:
-----------
Simulate mapping on empty focus if no owner is found
**What**
When the mapping simulation does not find an owner (linked, nor
correlated) of the processed shadow, then use empty focus as a mapping
target.
**Why**
One of the main objective of the mapping simulation is to provide a
visibility of how particular mapping with its expression behaves.
However, if the processed shadow does not have any owner, we don't have
any obvious target to which we could apply the resulting delta from the
mapping. Thus we would lost the visibility on what the expression is
doing, because there is nothing against what it could compute the
difference.
Using an empty focus in above case is a simple way, how to preserve the
benefit of seeing what the mapping produces, even though we don't have
direct target against which we could apply it. The result will looks
like if all the changed attributes were just added.
**Task**: 10992
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