Class ExecutionAttemptsConstraintEvaluator
java.lang.Object
com.evolveum.midpoint.repo.common.activity.policy.evaluator.NumericConstraintEvaluator<NumericThresholdPolicyConstraintType>
com.evolveum.midpoint.repo.common.activity.policy.evaluator.ExecutionAttemptsConstraintEvaluator
- All Implemented Interfaces:
ActivityPolicyConstraintEvaluator<NumericThresholdPolicyConstraintType,EvaluatedNumericTrigger<NumericThresholdPolicyConstraintType>>
@Component
public class ExecutionAttemptsConstraintEvaluator
extends NumericConstraintEvaluator<NumericThresholdPolicyConstraintType>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LocalizableMessagegetDataNeeds(jakarta.xml.bind.JAXBElement<NumericThresholdPolicyConstraintType> constraint) What data is needed to evaluate particular constraint.protected PolicyConstraintKindprotected @Nullable Integerprotected booleanshouldTriggerOnEmptyConstraint(NumericThresholdPolicyConstraintType constraint, Integer value) Methods inherited from class com.evolveum.midpoint.repo.common.activity.policy.evaluator.NumericConstraintEvaluator
createMessage, createShortMessage, evaluate, shouldTriggerOnNullValue
-
Constructor Details
-
ExecutionAttemptsConstraintEvaluator
public ExecutionAttemptsConstraintEvaluator()
-
-
Method Details
-
getLocalValue
- Specified by:
getLocalValuein classNumericConstraintEvaluator<NumericThresholdPolicyConstraintType>
-
getPreexistingValue
@Nullable protected @Nullable Integer getPreexistingValue(ActivityPolicyRuleEvaluationContext context) - Specified by:
getPreexistingValuein classNumericConstraintEvaluator<NumericThresholdPolicyConstraintType>
-
shouldTriggerOnEmptyConstraint
protected boolean shouldTriggerOnEmptyConstraint(NumericThresholdPolicyConstraintType constraint, Integer value) - Overrides:
shouldTriggerOnEmptyConstraintin classNumericConstraintEvaluator<NumericThresholdPolicyConstraintType>
-
createEvaluatorName
- Overrides:
createEvaluatorNamein classNumericConstraintEvaluator<NumericThresholdPolicyConstraintType>
-
getDataNeeds
public Set<DataNeed> getDataNeeds(jakarta.xml.bind.JAXBElement<NumericThresholdPolicyConstraintType> constraint) Description copied from interface:ActivityPolicyConstraintEvaluatorWhat data is needed to evaluate particular constraint. -
getPolicyConstraintKind
- Specified by:
getPolicyConstraintKindin classNumericConstraintEvaluator<NumericThresholdPolicyConstraintType>
-