[midPoint-git] [Evolveum/midpoint] be9c2c: Return deltas computed by inbound processing

Andrej noreply at github.com
Fri Feb 6 14:33:07 CET 2026


  Branch: refs/heads/feature/t-4184
  Home:   https://github.com/Evolveum/midpoint
  Commit: be9c2c884ca72eaef3fa5a9db58d93dce6fbff1a
      https://github.com/Evolveum/midpoint/commit/be9c2c884ca72eaef3fa5a9db58d93dce6fbff1a
  Author: Andrej Zan <andrej.zan at evolveum.com>
  Date:   2026-02-06 (Fri, 06 Feb 2026)

  Changed paths:
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/InboundProcessor.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/AbstractInboundsProcessing.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/FullInboundsProcessing.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/SingleShadowInboundsProcessing.java

  Log Message:
  -----------
  Return deltas computed by inbound processing

**What**

Instead of applying the computed delta to the target object directly in
the `AbstractInboundsProcessing` class, move this responsibility to the
caller of inbound processing implementations.

**Why**

Main reason is, that I want to use inbound processing implementation in
the mappings simulation activity. But in there, I need the deltas, not
the target object with them already applied, because I need to write
those deltas to the simulation result. Other option would be to diff the
object with applied deltas with the original object. But that is a waste
of resources.

There is also other reason. The `executeToDeltas` method, originally
computed the deltas, but it also applied them to the target object. But
that is quite counter-intuitive. Considering the method name, I would
expect it will just compute and return the deltas.

By moving the application of the deltas outside, we also gain more
flexibility, because the way how deltas are applied does not need to be
defined by the implementations. That means, the deltas produced by one
implementation, can be used in different ways, depending on the
requirements of the caller.

**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