Class DecisionTableResult
java.lang.Object
com.northconcepts.datapipeline.foundations.core.Bean
com.northconcepts.datapipeline.foundations.core.FoundationObject
com.northconcepts.datapipeline.foundations.decisiontable.DecisionTableObject
com.northconcepts.datapipeline.foundations.decisiontable.DecisionTableResult
- All Implemented Interfaces:
DataExceptionContributor,JsonSerializable,RecordSerializable,XmlSerializable,Serializable
The result of evaluating a
DecisionTable: the rule that fired and the outcome fields.- See Also:
-
Field Summary
Fields inherited from class com.northconcepts.datapipeline.foundations.core.FoundationObject
internalId, internalName, log, TIMESTAMP_FORMATFields inherited from interface com.northconcepts.datapipeline.core.RecordSerializable
SERIALIZED_CLASS_NAME, TYPEFields inherited from interface com.northconcepts.datapipeline.core.XmlSerializable
XML_SERIALIZED_CLASS_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.Returns the first rule whose conditions all held, or null if none did.setOutcome(Record outcome) Sets the fields set by the fired rule's outcomes, or by the default outcomes if no rule fired.setRuleFired(DecisionTableRule ruleFired) Sets the first rule whose conditions all held, or null if none did.Methods inherited from class com.northconcepts.datapipeline.foundations.core.FoundationObject
addExceptionProperties, assertValid, assertValid, clone, exception, exception, exception, getInternalId, getInternalName, resetInternalIdMethods inherited from class com.northconcepts.datapipeline.foundations.core.Bean
fromRecord, toRecord, toStringMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.northconcepts.datapipeline.core.DataExceptionContributor
addExceptionPropertiesMethods inherited from interface com.northconcepts.datapipeline.core.RecordSerializable
fromJson, fromJson, toJson, toJson, toJsonMethods inherited from interface com.northconcepts.datapipeline.core.XmlSerializable
fromXml, fromXml, fromXmlElement, toXml, toXml, toXml, toXml, toXml, toXmlElement
-
Constructor Details
-
DecisionTableResult
public DecisionTableResult()
-
-
Method Details
-
getRuleFired
Returns the first rule whose conditions all held, or null if none did. -
setRuleFired
Sets the first rule whose conditions all held, or null if none did. -
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
Sets the fields set by the fired rule's outcomes, or by the default outcomes if no rule fired. -
getOutcomeAsJson
-