[midPoint-git] [Evolveum/midpoint] a2564b: Fix validation of simple outbound mapping scripts
Andrej
noreply at github.com
Fri Nov 28 11:37:58 CET 2025
Branch: refs/heads/midpilot
Home: https://github.com/Evolveum/midpoint
Commit: a2564bdad3b3aaccafb1128693608ef3d4fbb161
https://github.com/Evolveum/midpoint/commit/a2564bdad3b3aaccafb1128693608ef3d4fbb161
Author: Andrej Zan <andrej.zan at evolveum.com>
Date: 2025-11-28 (Fri, 28 Nov 2025)
Changed paths:
M model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/MappingsSuggestionOperation.java
M model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/scoring/MappingsQualityAssessor.java
Log Message:
-----------
Fix validation of simple outbound mapping scripts
**What**
Fix the problem with undeclared variables when evaluating scripts from
outbound mappings.
**Why**
Outbound mappings works a differently than inbound mappings in a way
that the source for the transformation has the name of the property
itself. In case of inbound mapping it the name is always "input".
That of course caused problem when we tried to evaluate the outbound
mapping scripts, because they are not using the `input` variable, but
they use the variable which name is the same as the name of source
property.
**Notes**
This implementation is quite naive and it will work only in case of one
to one mappings. If the mapping contains more source properties, then it
will not work, because only one of them will be bound to script
variables map.
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