public class DecisionTable extends DecisionTableObject
internalId, internalName, log, TIMESTAMP_FORMAT
SERIALIZED_CLASS_NAME, TYPE
XML_SERIALIZED_CLASS_NAME
Constructor and Description |
---|
DecisionTable() |
assertValid, clone, exception, exception, exception, getInternalId, getInternalName, resetInternalId
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
fromArrayValue, fromArrayValue, fromArrayValue, fromJson, newInstanceFromRecord, newInstanceFromRecord, toArrayValue, toJson, toJson, toJson, toRecord
newInstanceFromJson
forEachGrandChildElement, fromXml, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getChildElement, getChildElements, newInstanceFromXml, newInstanceFromXml, setAttribute, toXml, toXml, toXml, toXml, writeXml, writeXml
addExceptionProperties, contributeExceptionProperties, contributeExceptionProperties
public String getName()
public DecisionTable setName(String name)
public String getDescription()
public DecisionTable setDescription(String description)
public DefaultExpressionContext getRootExpressionContext()
public DecisionTable setValue(String name, Object value)
public DecisionTable setValue(String name, Object value, Class<?> type)
public List<CalculatedField> getFields()
public DecisionTable addField(CalculatedField field)
public DecisionTable addField(String variable, String expression)
public DecisionTable addField(String variable, String expression, boolean includeInOutcome)
public DecisionTable addField(Collection<CalculatedField> fields)
public List<DecisionTableRule> getRules()
public DecisionTable addRule(DecisionTableRule rule)
public DecisionTable addRule(Collection<DecisionTableRule> rules)
public long getRownum()
public List<DecisionTableOutcome> getDefaultOutcomes()
public DecisionTable addDefaultOutcome(DecisionTableOutcome outcome)
public DecisionTable addDefaultOutcome(Collection<DecisionTableOutcome> outcomes)
public DecisionTable addDefaultOutcome(String variable, String expression)
public DecisionTable assertValid()
assertValid
in class FoundationObject
public DecisionTableResult evaluate(ExpressionContext expressionContext)
public DataException addExceptionProperties(DataException exception)
FoundationObject
DataException
. Since this method is called whenever an
exception is thrown, subclasses should override it to add their specific information.addExceptionProperties
in interface DataExceptionContributor
addExceptionProperties
in class FoundationObject
public DecisionTable toXml(Writer writer)
public DecisionTable fromXml(InputStream inputStream)
public Record toRecord()
toRecord
in interface RecordSerializable
toRecord
in class Bean
public DecisionTable fromRecord(Record source)
RecordSerializable
this
(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 RecordSerializable
fromRecord
in class Bean
public DecisionTable fromJson(String jsonString)
public DecisionTable fromXmlElement(Element element)
Copyright (c) 2006-2024 North Concepts Inc. All Rights Reserved.