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 Details

    • isFailure

      boolean isFailure()
      Returns:
      true if the evaluation was not successful, otherwise false
    • getFailureMessage

      String getFailureMessage()
      Returns the reason why the evaluation failed. Use isFailure() to check if the evaluation was successful or not.
      Returns:
      the failure message if the evaluation was not successful, or null if the evaluation was successful
    • getFailedDecisionId

      String getFailedDecisionId()
      Returns the id of the decision where the evaluation failed. Use isFailure() to check if the evaluation was successful or not.
      Returns:
      the id of the decision where the evaluation failed, or null if 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 the details of 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