Package io.camunda.zeebe.dmn
Interface DecisionEvaluationResult
- All Known Implementing Classes:
EvaluationFailure,EvaluationResult
public interface DecisionEvaluationResult
The result of a
ParsedDecision. If successful it contains the output of the decision that
was made, otherwise it contains the evaluation failure.- See Also:
-
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
-
Method Details
-
isFailure
boolean isFailure()- Returns:
trueif the evaluation was not successful, otherwisefalse
-
getFailureMessage
String getFailureMessage()Returns the reason why the evaluation failed. UseisFailure()to check if the evaluation was successful or not.- Returns:
- the failure message if the evaluation was not successful, or
nullif the evaluation was successful
-
getFailedDecisionId
String getFailedDecisionId()Returns the id of the decision where the evaluation failed. UseisFailure()to check if the evaluation was successful or not.- Returns:
- the id of the decision where the evaluation failed, or
nullif the evaluation was successful
-
getOutput
org.agrona.DirectBuffer getOutput()- Returns:
- the output of the decision if it was made successfully, otherwise
null
-
getEvaluatedDecisions
List<EvaluatedDecision> getEvaluatedDecisions()Returns 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.- Returns:
- details of the evaluated decisions
-