All Implemented Interfaces:
DataExceptionContributor, JsonSerializable, RecordSerializable, XmlSerializable, Serializable

public class DecisionTableResult extends DecisionTableObject
The result of evaluating a DecisionTable: the rule that fired and the outcome fields.
See Also:
  • Constructor Details

    • DecisionTableResult

      public DecisionTableResult()
  • Method Details

    • getRuleFired

      public DecisionTableRule getRuleFired()
      Returns the first rule whose conditions all held, or null if none did.
    • setRuleFired

      public DecisionTableResult setRuleFired(DecisionTableRule ruleFired)
      Sets the first rule whose conditions all held, or null if none did.
    • getOutcome

      public Record getOutcome()
      Returns the fields set by the fired rule's outcomes, or by the default outcomes if no rule fired; null if no rule fired and there are no default outcomes.
    • setOutcome

      public DecisionTableResult setOutcome(Record outcome)
      Sets the fields set by the fired rule's outcomes, or by the default outcomes if no rule fired.
    • getOutcomeAsJson

      public String getOutcomeAsJson()