-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add preliminary support for simulations in tasks
Now it is possible to specify: 1. Whether the activity should use production or development configuration (if "preview" execution mode is set). 2. If the simulation result should be created for the activity. Work in progress. Early prototype.
- Loading branch information
Showing
67 changed files
with
649 additions
and
410 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 22 additions & 7 deletions
29
...api/src/main/java/com/evolveum/midpoint/model/api/simulation/SimulationResultContext.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,38 @@ | ||
/* | ||
* Copyright (C) 2010-2022 Evolveum and contributors | ||
* | ||
* This work is dual-licensed under the Apache License 2.0 | ||
* and European Union Public License. See LICENSE file for details. | ||
*/ | ||
|
||
package com.evolveum.midpoint.model.api.simulation; | ||
|
||
import java.util.Collection; | ||
|
||
import com.evolveum.midpoint.schema.constants.ObjectTypes; | ||
import com.evolveum.midpoint.schema.util.ObjectTypeUtil; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType; | ||
|
||
import org.jetbrains.annotations.NotNull; | ||
|
||
import com.evolveum.midpoint.prism.delta.ObjectDelta; | ||
import com.evolveum.midpoint.schema.result.OperationResult; | ||
import com.evolveum.midpoint.task.api.AggregatedObjectProcessingListener; | ||
import com.evolveum.midpoint.util.exception.ObjectNotFoundException; | ||
import com.evolveum.midpoint.util.exception.SchemaException; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.SimulationResultType; | ||
|
||
import org.jetbrains.annotations.NotNull; | ||
|
||
import java.util.Collection; | ||
|
||
public interface SimulationResultContext { | ||
|
||
AggregatedObjectProcessingListener aggregatedObjectProcessingListener(); | ||
@NotNull AggregatedObjectProcessingListener aggregatedObjectProcessingListener(); | ||
|
||
/** OID of the {@link SimulationResultType} object that can be used to retrieve the data. */ | ||
/** OID of the {@link SimulationResultType} object. */ | ||
@NotNull String getResultOid(); | ||
|
||
/** Reference to the {@link SimulationResultType} object. */ | ||
default ObjectReferenceType getResultRef() { | ||
return ObjectTypeUtil.createObjectRef(getResultOid(), ObjectTypes.SIMULATION_RESULT); | ||
} | ||
|
||
/** TEMPORARY. Retrieves stored deltas. May be replaced by something more general in the future. */ | ||
@NotNull Collection<ObjectDelta<?>> getStoredDeltas(OperationResult result) throws SchemaException; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.