Package io.camunda.zeebe.dmn.impl
Class EvaluationFailure
java.lang.Object
io.camunda.zeebe.dmn.impl.EvaluationFailure
- All Implemented Interfaces:
DecisionEvaluationResult
The result of an unsuccessful attempt to evaluate a decision.
-
Constructor Summary
ConstructorsConstructorDescriptionEvaluationFailure(String message, String failedDecisionId) EvaluationFailure(String message, String failedDecisionId, List<EvaluatedDecision> evaluatedDecisions) -
Method Summary
Modifier and TypeMethodDescriptionReturns thedetailsof the evaluated decision and its required decisions.Returns the id of the decision where the evaluation failed.Returns the reason why the evaluation failed.org.agrona.DirectBufferboolean
-
Constructor Details
-
EvaluationFailure
-
EvaluationFailure
public EvaluationFailure(String message, String failedDecisionId, List<EvaluatedDecision> evaluatedDecisions)
-
-
Method Details
-
isFailure
public boolean isFailure()- Specified by:
isFailurein interfaceDecisionEvaluationResult- Returns:
trueif the evaluation was not successful, otherwisefalse
-
getFailureMessage
Description copied from interface:DecisionEvaluationResultReturns the reason why the evaluation failed. UseDecisionEvaluationResult.isFailure()to check if the evaluation was successful or not.- Specified by:
getFailureMessagein interfaceDecisionEvaluationResult- Returns:
- the failure message if the evaluation was not successful, or
nullif the evaluation was successful
-
getFailedDecisionId
Description copied from interface:DecisionEvaluationResultReturns the id of the decision where the evaluation failed. UseDecisionEvaluationResult.isFailure()to check if the evaluation was successful or not.- Specified by:
getFailedDecisionIdin interfaceDecisionEvaluationResult- Returns:
- the id of the decision where the evaluation failed, or
nullif the evaluation was successful
-
getOutput
public org.agrona.DirectBuffer getOutput()- Specified by:
getOutputin interfaceDecisionEvaluationResult- Returns:
- the output of the decision if it was made successfully, otherwise
null
-
getEvaluatedDecisions
Description copied from interface:DecisionEvaluationResultReturns thedetailsof the evaluated decision and its required decisions. The order depends on the evaluation order, starting from the required decisions. If the evaluation is not successful then it contains the successful evaluated decisions and the decision that was not successful.- Specified by:
getEvaluatedDecisionsin interfaceDecisionEvaluationResult- Returns:
- details of the evaluated decisions
-