public class DecisionTableRule extends DecisionTableObject implements Cloneable
internalId, internalName, log, TIMESTAMP_FORMATSERIALIZED_CLASS_NAME, TYPEXML_SERIALIZED_CLASS_NAME| Constructor and Description |
|---|
DecisionTableRule() |
assertValid, exception, exception, exception, getInternalId, getInternalName, resetInternalIdequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfromArrayValue, fromArrayValue, fromArrayValue, fromJson, fromJson, newInstanceFromRecord, newInstanceFromRecord, toArrayValue, toJson, toJson, toJson, toRecordnewInstanceFromJsonforEachGrandChildElement, fromXml, fromXml, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getChildElement, getChildElements, newInstanceFromXml, newInstanceFromXml, setAttribute, toXml, toXml, toXml, toXml, toXml, writeXml, writeXmladdExceptionProperties, contributeExceptionProperties, contributeExceptionPropertiespublic String getName()
public DecisionTableRule setName(String name)
public String getDescription()
public DecisionTableRule setDescription(String description)
public List<DecisionTableCondition> getConditions()
public DecisionTableRule addCondition(DecisionTableCondition condition)
public DecisionTableRule addCondition(Collection<DecisionTableCondition> conditions)
public DecisionTableRule addCondition(String variable, String expression)
public DecisionTableRule addCondition(String expression)
public List<DecisionTableOutcome> getOutcomes()
public DecisionTableRule addOutcome(DecisionTableOutcome outcome)
public DecisionTableRule addOutcome(Collection<DecisionTableOutcome> outcomes)
public DecisionTableRule addOutcome(String variable, String expression)
public boolean isAllowNoConditions()
public DecisionTableRule setAllowNoConditions(boolean allowNoConditions)
public boolean isAllowNoOutcomes()
public DecisionTableRule setAllowNoOutcomes(boolean allowNoOutcomes)
public DecisionTableRule assertValid()
assertValid in class FoundationObjectprotected boolean evaluate(ExpressionContext expressionContext)
protected void evaluateOutcome(ExpressionContext expressionContext,
Record record)
public DataException addExceptionProperties(DataException exception)
FoundationObjectDataException. Since this method is called whenever an
exception is thrown, subclasses should override it to add their specific information.addExceptionProperties in interface DataExceptionContributoraddExceptionProperties in class FoundationObjectpublic DecisionTableRule clone()
clone in class FoundationObjectpublic Record toRecord()
toRecord in interface RecordSerializabletoRecord in class Beanpublic DecisionTableRule fromRecord(Record source)
RecordSerializablethis (for fluid API call chaining).
For fluid API call chaining, the overridden method should change the declared return type to its class.fromRecord in interface RecordSerializablefromRecord in class Beanpublic Element toXmlElement(Document document)
toXmlElement in interface XmlSerializablepublic DecisionTableRule fromXmlElement(Element element)
fromXmlElement in interface XmlSerializableCopyright (c) 2006-2025 North Concepts Inc. All Rights Reserved.