[midPoint-git] [Evolveum/midpoint] cabda9: Add custom message to state constraints

Arnost Starosta arnost.starosta at gmail.com
Fri Mar 16 09:27:37 CET 2018


  Branch: refs/heads/master
  Home:   https://github.com/Evolveum/midpoint
  Commit: cabda98a31cb106091e353c7e100726ab4f71615
      https://github.com/Evolveum/midpoint/commit/cabda98a31cb106091e353c7e100726ab4f71615
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2018-03-16 (Fri, 16 Mar 2018)

  Changed paths:
    M infra/schema/src/main/resources/xml/ns/public/common/common-policy-3.xsd
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/policy/evaluators/AssignmentModificationConstraintEvaluator.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/policy/evaluators/CompositeConstraintEvaluator.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/policy/evaluators/ConstraintEvaluatorHelper.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/policy/evaluators/ExclusionConstraintEvaluator.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/policy/evaluators/HasAssignmentConstraintEvaluator.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/policy/evaluators/ModificationConstraintEvaluator.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/policy/evaluators/MultiplicityConstraintEvaluator.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/policy/evaluators/ObjectModificationConstraintEvaluator.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/policy/evaluators/PolicySituationConstraintEvaluator.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/policy/evaluators/StateConstraintEvaluator.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/policy/evaluators/TransitionConstraintEvaluator.java

  Log Message:
  -----------
  Add custom message to state constraints

It is now possible for a state constraint to provide custom
localizable message when matched. Experimental.

Also added evaluatorHelper, constraint and constraintElement
variables to expressions related to policy constraint evaluations.

(cherry picked from commits 1f016e1, d60933a, 465c9e5, 81aa440)


  Commit: a2cc49d9f23ac5db24f474fb01f8e192f442f60c
      https://github.com/Evolveum/midpoint/commit/a2cc49d9f23ac5db24f474fb01f8e192f442f60c
  Author: Arnost Starosta <arnost.starosta at gmail.com>
  Date:   2018-03-16 (Fri, 16 Mar 2018)

  Changed paths:
    M infra/schema/src/main/resources/localization/schema.properties
    M infra/schema/src/main/resources/localization/schema_en.properties
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/policy/evaluators/StateConstraintEvaluator.java
    M testing/story/src/test/resources/delivery/rules/k20.xml
    M testing/story/src/test/resources/delivery/rules/library.xml

  Log Message:
  -----------
  Policy constraint messageExpression sample and small fix of mandatory elements check in state policy constraint evaluator.

(cherry picked from commit f3fb063)


Compare: https://github.com/Evolveum/midpoint/compare/79c68f20a38c...a2cc49d9f23a


More information about the midPoint-svn mailing list