[midPoint-git] [Evolveum/midpoint] 8a0113: Fix assignment validity determination

mederly noreply at github.com
Mon Mar 16 18:49:48 CET 2020


  Branch: refs/heads/support-4.0
  Home:   https://github.com/Evolveum/midpoint
  Commit: 8a011398db799276ef5a09d146871320ef59aed0
      https://github.com/Evolveum/midpoint/commit/8a011398db799276ef5a09d146871320ef59aed0
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2020-03-16 (Mon, 16 Mar 2020)

  Changed paths:
    M infra/common/src/main/java/com/evolveum/midpoint/common/ActivationComputer.java
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/util/ApprovalContextUtil.java
    M model/certification-impl/src/test/java/com/evolveum/midpoint/certification/test/complex/TestPolicyDrivenRoleLifecycle.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/AssignmentEvaluator.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/AssignmentPathSegmentImpl.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensUtil.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/AssignmentProcessor.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/AssignmentTripleEvaluator.java
    M model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/processes/common/StageComputeHelper.java
    M model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/processors/primary/PrimaryChangeProcessor.java
    M model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/processors/primary/policy/AssignmentPolicyAspectPart.java
    M model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/processors/primary/policy/PolicyRuleBasedAspect.java
    M model/workflow-impl/src/test/java/com/evolveum/midpoint/wf/impl/assignments/AbstractTestAssignmentApproval.java
    M model/workflow-impl/src/test/java/com/evolveum/midpoint/wf/impl/assignments/TestAssignmentApprovalGlobal.java
    M model/workflow-impl/src/test/java/com/evolveum/midpoint/wf/impl/assignments/TestAssignmentApprovalMetaroleExplicit.java
    M model/workflow-impl/src/test/java/com/evolveum/midpoint/wf/impl/assignments/TestAssignmentApprovalPlainImplicit.java
    A model/workflow-impl/src/test/resources/assignments/user-draft.xml
    M model/workflow-impl/src/test/resources/assignments/user-lead1.xml
    M model/workflow-impl/src/test/resources/assignments/user-lead2.xml
    M model/workflow-impl/src/test/resources/assignments/user-lead3.xml

  Log Message:
  -----------
  Fix assignment validity determination

When processing assignments, the validity of any given assignment
depends on (besides the validity of the assignment itself) the lifecycle
state of the assignment source.

The original implementation referred to the lifecycle state of the
focus. This is not correct when considering the validity of higher-order
assignments. So we switched the consideration to assignment source.

This resolves MID-6114.

(cherry picked from commit 3887e4f2d1f33679f6d15cf37e9987840a8003e6)




More information about the midPoint-svn mailing list