[midPoint-git] [Evolveum/midpoint] 4a9ca4: Get case archetype OID even without object
mederly
noreply at github.com
Thu Feb 17 18:13:21 CET 2022
Branch: refs/heads/feature/case-integration
Home: https://github.com/Evolveum/midpoint
Commit: 4a9ca4de607df8994bcabb0c16811f5a7fd392d4
https://github.com/Evolveum/midpoint/commit/4a9ca4de607df8994bcabb0c16811f5a7fd392d4
Author: Pavol Mederly <mederly at evolveum.com>
Date: 2022-02-17 (Thu, 17 Feb 2022)
Changed paths:
M model/cases-api/src/main/java/com/evolveum/midpoint/cases/api/extensions/StageClosingResult.java
M model/cases-api/src/main/java/com/evolveum/midpoint/cases/api/extensions/StageOpeningResult.java
M model/cases-impl/src/main/java/com/evolveum/midpoint/cases/impl/engine/CaseEngineImpl.java
M model/cases-impl/src/main/java/com/evolveum/midpoint/cases/impl/engine/actions/OpenStageAction.java
M model/certification-impl/src/test/java/com/evolveum/midpoint/certification/test/complex/TestPolicyDrivenRoleLifecycle.java
M model/certification-impl/src/test/resources/complex/role-high-risk-empty.xml
M model/certification-impl/src/test/resources/logback-test.xml
A model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/processors/primary/cases/ApprovalStageOpeningResultImpl.java
M model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/processors/primary/cases/CaseStageOpening.java
R model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/processors/primary/cases/StageOpeningResultImpl.java
M repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/AbstractIntegrationTest.java
M repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/asserter/prism/PrismObjectAsserter.java
Log Message:
-----------
Get case archetype OID even without object
In some tests there may be archetype objects missing, therefore
the archetype manager cannot determine the structural archetype.
Here we add a fallback that uses archetype OID from archetypeRef
if it has exactly one value.
This makes TestPolicyDrivenRoleLifecycle in certification-impl
work.
More information about the midPoint-svn
mailing list