[midPoint-git] [Evolveum/midpoint] 8c2232: Fix the leaking correlation simulation marks

Andrej noreply at github.com
Tue Feb 24 13:45:08 CET 2026


  Branch: refs/heads/master
  Home:   https://github.com/Evolveum/midpoint
  Commit: 8c22322ebf880f8a72dd952e295831eb41dd31d8
      https://github.com/Evolveum/midpoint/commit/8c22322ebf880f8a72dd952e295831eb41dd31d8
  Author: Andrej Zan <andrej.zan at evolveum.com>
  Date:   2026-02-24 (Tue, 24 Feb 2026)

  Changed paths:
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/correlator/tasks/CorrelationSimulationActivityRun.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/simulation/ProcessedObjectImpl.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/simulation/ProcessedObjectsWriter.java
    M model/model-impl/src/test/java/com/evolveum/midpoint/model/impl/correlator/tasks/CorrelationServiceTest.java
    M model/model-impl/src/test/resources/correlator/correlation/task/account.csv
    M model/model-impl/src/test/resources/correlator/correlation/task/dummy-resource.xml
    A provisioning/provisioning-api/src/main/java/com/evolveum/midpoint/provisioning/api/CorrelationSimulationData.java
    M repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/DummyTestResource.java
    M repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/TestResourceAccounts.java

  Log Message:
  -----------
  Fix the leaking correlation simulation marks

**What**

Prevent event marks related to correlation simulation to be added to
other types of simulation.

**Why**

Event marks from correlation simulation has been leaking to other types
of simulations, causing confusing results in the simulation preview.

This change makes sure that these event marks are used only for the
correlation simulation.

**Notes**

Technically, there is no mechanism, which would prevent adding those
marks to any simulation task, by doing so directly in the
`ProcessedObjectImpl` code, because the so called `SimulationData`
implementations are not tight to particular task. They can be used from
whatever task which desires it.

What this change did is simply that the correlation simulation task does
not reuse existing `ShadowSimulationData`, which are used also by other
simulation tasks, but instead creates "its own" implementation of
`SimulationData`.

This change also did a small cleanup for the tests, using the new
methods available in the `DummyTestResource` instead of relying on the
static method from `CorrelatorTestUtil`.



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