Package oracle.rules.sdk2.decisiontable
Class DTAction
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,
,Object> UnnamedComponent
,ExpressionContext
,ScopedVariable
,VariableScope
,VerbalRuleComponent
A DTAction is an action that may be selected by any rule in the decision table, optionally with
different parameters per rule.
A Decision Table Action extends Action and contains
- a DTActionNodeTable that contains a DTActionNode for every rule on the sheet
- a boolean "parameterized" property that indicates whether the Action and the DTActionNode must be combined to form the rule action.
- a boolean "alwaysSelected" property that indicates the "actionSelected" property of each DTActionNode is true and cannot be de-selected.
An ASSIGN_NEW action must be alwaysSelected.
When the UI supplies action parameters, it should name those parameters that are to be supplied by the DTActionNodes by setting its DTActionParameterName property. Any expression value supplied becomes the default value if one is not supplied for the node.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class oracle.rules.sdk2.ruleset.Action
Action.FormProperty, Action.TargetProperty
Nested classes/interfaces inherited from class oracle.rules.sdk2.dictionary.DictionaryComponent
DictionaryComponent.Diff<T extends DictionaryComponent>, DictionaryComponent.DiffSummary, DictionaryComponent.DiffType
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K extends Object,
V extends Object> Nested classes/interfaces inherited from interface oracle.rules.sdk2.ruleset.VariableScope
VariableScope.ExprLocation
-
Field Summary
Fields inherited from class oracle.rules.sdk2.ruleset.Action
FORM_ADVANCED, FORM_ASSERT, FORM_ASSERT_NEW, FORM_ASSERT_TREE, FORM_ASSIGN, FORM_ASSIGN_NEW, FORM_BASIC, FORM_CALL, FORM_CATCH, FORM_DEFAULT, FORM_DSL, FORM_ELSE, FORM_ELSE_IF, FORM_ELSE_IF_TEST, FORM_EXPRESSION, FORM_FINALLY, FORM_FOR, FORM_IF, FORM_IF_TEST, FORM_MODIFY, FORM_RETRACT, FORM_RETURN, FORM_RL, FORM_SYNCHRONIZED, FORM_TEST, FORM_THROW, FORM_TRY, FORM_WHILE, FORM_WHILE_TEST, KEYWORD_DO, KEYWORD_THEN, VERBAL_ASSERT_NEW, VERBAL_RETRACT
Fields inherited from class oracle.rules.sdk2.ruleset.RuleComponent
BUILTIN
Fields inherited from class oracle.rules.sdk2.dictionary.DictionaryComponent
PROP_ACCESS, PROP_ACTION_SELECTED, PROP_ACTION_TABLE, PROP_ACTIVE, PROP_ACTUAL_TEST_OUTPUT_TABLE, PROP_ADHOC_TEST_VALIDATION, PROP_ADVANCED_MODE, PROP_AGGREGATE, PROP_AGGREGATE_TABLE, PROP_ALIAS, PROP_ALLOW_GAPS, PROP_ALWAYS_SELECTED, PROP_ARRAY, PROP_ARRAY_COMPONENT_TYPE, PROP_ARRAY_COMPONENT_TYPE_ID, PROP_ARRAY_FACT_TYPE_TABLE, PROP_AUTO_CONFLICT_RESOLUTION, PROP_AUTO_PATTERN_PROPERTY, PROP_AUTO_SYNC, PROP_BODY, PROP_BUCKET_ID_TABLE, PROP_BUCKET_SET, PROP_BUCKET_SET_ID, PROP_BUCKET_SET_TABLE, PROP_BUCKET_TABLE, PROP_CALENDAR_FORM, PROP_CHECK_RULE_FLOW, PROP_CHILD_DIMENSION_NODES, PROP_CONFLICT, PROP_CONFLICT_POLICY, PROP_CONNECTIVE, PROP_CONSTANT, PROP_CONSTRUCTOR, PROP_CONSTRUCTOR_TABLE, PROP_CREATION_UPDATE_NUMBER, PROP_CURSOR_POSITION, PROP_CUSTOM_BINDING, PROP_DATA_MODEL, PROP_DATA_SOURCE, PROP_DECISION_FUNCTION, PROP_DECISION_FUNCTION_ID, PROP_DECISION_FUNCTION_INPUT_TABLE, PROP_DECISION_FUNCTION_OUTPUT_TABLE, PROP_DECISION_FUNCTION_RULESET_TABLE, PROP_DECISION_FUNCTION_TABLE, PROP_DECISION_MODEL, PROP_DESCRIPTION, PROP_DF_FACT, PROP_DF_FACT_ID, PROP_DICT_LOADING_EXTENSION, PROP_DICTIONARY_LINK_TABLE, PROP_DIMENSION_NODE_TABLE, PROP_DIMENSION_TABLE, PROP_DISALLOW_ERROR_SUPPRESSION, PROP_DRAFT, PROP_DSL_ID, PROP_DSL_PARAMETER_TABLE, PROP_DSL_TABLE, PROP_DSL_VALUE, PROP_DT_ACTION_NODE_TABLE, PROP_DT_ACTION_PARAMETER_NAME, PROP_DTACTION_TABLE, PROP_DTRULE_TABLE, PROP_EFFECTIVE_END_DATE, PROP_EFFECTIVE_START_DATE, PROP_ENUM, PROP_ENUM_BUCKET_SET, PROP_ENUM_BUCKET_SET_ID, PROP_ENUM_TYPE, PROP_EXCEPTION_IDS, PROP_EXCEPTIONS, PROP_EXCLUDED, PROP_EXPECTED_TEST_OUTPUT_TABLE, PROP_EXPRESSION, PROP_EXPRESSION_TABLE, PROP_FACT_PATH, PROP_FACT_PATH_IDS, PROP_FACT_TABLE, PROP_FACT_TYPE, PROP_FACT_TYPE_ID, PROP_FACT_TYPE_IDS, PROP_FACT_TYPE_TABLE, PROP_FACT_TYPES, PROP_FIELD_TABLE, PROP_FINAL, PROP_FORM, PROP_FORMAL_PARAMETER_TABLE, PROP_FUNCTION, PROP_FUNCTION_ID, PROP_FUNCTION_SIGNATURE, PROP_FUNCTION_TABLE, PROP_GENERATED_FROM, PROP_GLOBAL_ALIAS, PROP_ID, PROP_INCLUDE_CHAINED_EXPR, PROP_INCLUDED, PROP_INTERFACE, PROP_INTERFACE_IDS, PROP_INTERFACES, PROP_IS_ABSTRACT, PROP_IS_CONSTANT, PROP_IS_ENUM, PROP_IS_FINAL, PROP_IS_JAXB2, PROP_IS_PRIMARY_KEY, PROP_IS_STATIC, PROP_IS_TOPLEVEL_VIEW_OBJECT, PROP_LEFT, PROP_LIFECYCLE, PROP_LIFECYCLE_DESCRIPTION, PROP_LINK_PATH, PROP_LIST, PROP_LIST_CONTENT_TYPE, PROP_LIST_CONTENT_TYPE_ID, PROP_LOCAL, PROP_LOGICAL, PROP_METHOD_TABLE, PROP_MODIFIERS, PROP_NAME, PROP_NAMESPACE, PROP_NESTED_TABLE, PROP_NO_CONFLICT, PROP_NO_RULE_FIRED_IS_ERROR, PROP_NODE_NAME, PROP_OPERATOR, PROP_OPERATOR_ID, PROP_ORDER_RULES_BY_BUCKET, PROP_OTHERWISE, PROP_OUTPUT_TYPES, PROP_OVERLOADED_PARAMETER_TABLE, PROP_OVERRIDDEN_BY, PROP_OVERRIDE, PROP_PACKAGE, PROP_PARAM, PROP_PARAM_EXPRESSION, PROP_PARAMETER_ALIAS, PROP_PARAMETER_ID, PROP_PARAMETER_LIST, PROP_PARAMETER_NAME, PROP_PARAMETER_REQUIRED, PROP_PARAMETER_TYPE_IDS, PROP_PARAMETER_TYPES, PROP_PARENT_DIMENSION_NODE, PROP_PATTERN_TABLE, PROP_PHRASE_SUGGESTION_FORM, PROP_PREFERENCES, PROP_PREFIX_LINKED_NAMES, PROP_PRIORITY, PROP_PRIVATE_BUCKET_SET, PROP_PROPERTIES, PROP_PROPERTY, PROP_PROPERTY_ID, PROP_PROPERTY_TABLE, PROP_PROPERTY_VALUE_TABLE, PROP_QUALIFIER_PATTERN, PROP_READABLE, PROP_REF_ID, PROP_REPORT_BYUSE_NAMES, PROP_REPORT_PATTERNS, PROP_RESOLVED_TARGET, PROP_RESOLVED_VALUE, PROP_RESOURCE_BUNDLE, PROP_RESTRICT_AUTO_SUGGESTIONS, PROP_RETURN_TYPE, PROP_RIGHT, PROP_RIGHT_SEPARATOR, PROP_RULE_EXEC_ALGORITHM, PROP_RULE_FIRING_LIMIT, PROP_RULE_FIRING_LIMIT_ERROR, PROP_RULE_REPORT_TABLE, PROP_RULE_SET_TABLE, PROP_RULE_SHEET_TABLE, PROP_RULE_TABLE, PROP_RULESET, PROP_RUN_AFTER, PROP_RUN_BEFORE, PROP_SERVICE_CONFIGURATION, PROP_SERVICE_NAME, PROP_SERVICE_NAMESPACE, PROP_SHARED_BUCKET_SET, PROP_SHARED_BUCKET_SET_ID, PROP_SHOW_CONSTANTS, PROP_SHOW_FUNCTIONS, PROP_SHOW_VARIABLES, PROP_SIMPLE_TEST_TABLE, PROP_SOURCE, PROP_STATELESS, PROP_STATIC, PROP_SUPER_CLASS, PROP_SUPER_CLASS_ID, PROP_SUPPORT_XPATH, PROP_SUPPORTS_XPATH_ENABLED, PROP_SYNC_MARK, PROP_SYSTEM, PROP_TARGET, PROP_TARGET_PACKAGE, PROP_TEST_CASE_TABLE, PROP_TEST_FORM, PROP_TEST_INPUT_TABLE, PROP_TEST_MODEL, PROP_TEST_RESULT_TABLE, PROP_TEST_SUITE_TABLE, PROP_TEST_TEMPLATE_TABLE, PROP_TIMESTAMP, PROP_TOKEN_UNDER_CURSOR, PROP_TRANSLATED_ALIAS, PROP_TRANSLATED_DESCRIPTION, PROP_TRANSLATED_GLOBAL_ALIAS, PROP_TRANSLATED_PARAMETER_LIST, PROP_TRANSLATED_QUALIFIER_PATTERN, PROP_TRANSLATED_VALUE, PROP_TRANSLATED_VARIABLE, PROP_TREE, PROP_TREE_MODE, PROP_TYPE, PROP_TYPE_ID, PROP_TYPE_IDS, PROP_TYPES, PROP_UNIQUE_RULESETS, PROP_UNSAVED_TRANSLATED_ALIAS, PROP_UNSAVED_TRANSLATED_DESCRIPTION, PROP_UNSAVED_TRANSLATED_GLOBAL_ALIAS, PROP_UNSAVED_TRANSLATED_QUALIFIER_PATTERN, PROP_UNSAVED_TRANSLATED_VALUE, PROP_UPDATE_NUMBER, PROP_UPDATE_TIME, PROP_VALIDATION, PROP_VALIDATION_UPDATE_NUMBER, PROP_VALUE, PROP_VALUES, PROP_VARIABLE, PROP_VARIABLE_TABLE, PROP_VERBAL_RULE_TABLE, PROP_VERSION, PROP_VERTICAL_ORIENTATION, PROP_VISIBILITY_FILTER, PROP_VISIBILITY_FILTER_ENABLED, PROP_VISIBLE, PROP_WEB_SERVICE, PROP_WRITABLE, PROP_XML_NAME
-
Method Summary
Modifier and TypeMethodDescriptionGeneric property getter (override).Get AlwaysSelected Property.Get all expressions immediately contained in this action Note: in 11g this returned nested expressions as well, but this was never used.Get DTActionNodeTable.Deprecated.getExpressionByDTActionParameterName
(String parameterName) Get Expression from this DTAction's contained expressions by DT action parameter name.String[]
String[]
inScopeVariables
(boolean includeAggregates, VariableScope.ExprLocation direction) By default, pass the request to the containerboolean
is this action always selected in the child DTActionNodes?override to set nodes' actionSelected property true if this alwaysSelected set to truevoid
setAlwaysSelected
(boolean selected) set alwaysSelected flagvoid
setParameterized
(boolean parameterized) Deprecated.no longer neededvoid
validate
(List<SDKException> errors, List<SDKWarning> warnings) Validate decision table action.Methods inherited from class oracle.rules.sdk2.ruleset.Action
computeExpressionTable, desurround, getActionTable, getActionTableProperty, getAEReferences, getAlias, getAlias, getAllReferences, getBeansResultSet, getExpression, getExpressionByParameterAlias, getExpressionByParameterName, getExpressionTable, getExpressionTableProperty, getExprParserReferences, getFactTypeID, getForm, getFormOptions, getFormProperty, getFormSelected, getKind, getMatchOp, getMatchTypeIDs, getReferences, getSimpleTestTable, getSimpleTestTableProperty, getSurroundingFormChoices, getSurroundingFormOptions, getSurroundingFormOptions, getTarget, getTargetID, getTargetOptions, getTargetProperty, getTargetRL, getTargetSelected, getValue, getValueProperty, getVariable, getVariableProperty, getVariableRL, hasNestedActions, hasTarget, isAssignable, isDraft, isValueRequired, parentAction, setForm, setTarget, setValue, setVariable, setVariableRL, setVariableRL, suggest, suggestGenericChoices, surround, surround
Methods inherited from class oracle.rules.sdk2.ruleset.UnnamedRuleComponent
getDiffMatchValue, init, isAliasDistinct, isNameDistinct
Methods inherited from class oracle.rules.sdk2.ruleset.RuleComponent
get, getParent, getParentTable, getParentVariableScope, inScopeVariables, parentActionContext, parentAutoBindingContext, parentFunction, parentPattern, parentRule, parentRuleBase, parentRuleCommon, parentRuleSheet, parentTest, parentVariable, parentVerbalRule, RHSRuleVariables, toString, toString
Methods inherited from class oracle.rules.sdk2.dictionary.DictionaryComponent
_get, _put, clear, containsKey, containsValue, entrySet, forceSync, getAlias, getAlias, getAliasProperty, getContainedDiffs, getCustom, getDependents, getDescription, getDescription, getDescriptionProperty, getDiff, getDiffProperties, getDiffs, getFullyQualifiedAlias, getFullyQualifiedName, getIndex, getIndex, getName, getNameProperty, getNext, getNext, getObjectPath, getOptions, getPrevious, getPrevious, getProperties, getProperty, getSelected, getTranslatedAlias, getTranslatedAlias, getTranslatedDescription, hasConflict, hasDiff, init, isEmpty, isFullyQualifiedName, isModifiable, isSystemProperty, isUnsavedTranslatedAlias, isUnsavedTranslatedDescription, keySet, putAll, remove, removeDiff, setAlias, setAlias, setCustom, setDescription, setDescription, setName, setTranslatedAlias, setTranslatedDescription, size, validate, values
Methods inherited from class oracle.rules.sdk2.dictionary.DictionaryObject
_clearID, equals, exists, getAEReferenceCount, getCombinedDataModel, getContainedIDs, getContainedIDs, getDataModel, getDictionary, getID, getIndent, getObjectType, getParentByClass, getParentComponent, getParentComponentTable, getParentObject, getRuleSet, getState, getWarnings, hashCode, isModified, setID, validate, validate
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
Methods inherited from interface oracle.rules.sdk2.ruleset.ScopedVariable
getID
Methods inherited from interface oracle.rules.sdk2.dictionary.UnnamedComponent
getName, setAlias, setName
-
Method Details
-
setParameterized
Deprecated.no longer neededset parameterized flag- Parameters:
parameterized
- boolean flag
-
getAlwaysSelectedProperty
Get AlwaysSelected Property.- Returns:
- Boolean SettableProperty
-
isAlwaysSelected
public boolean isAlwaysSelected()is this action always selected in the child DTActionNodes?- Returns:
- boolean flag
-
setAlwaysSelected
public void setAlwaysSelected(boolean selected) set alwaysSelected flag- Parameters:
selected
- boolean flag
-
getDTActionNodeTableProperty
Deprecated.Get DTActionNodeTable Property.- Returns:
- DTAction TableProperty
-
getDTActionNodeTable
Get DTActionNodeTable. Each node corresponds positionally to its DTRule. See alsoDTRule.getDTActionNodeTable()
- Returns:
- DTActionNodeTable of this DTAction
-
getPropertyNames
- Specified by:
getPropertyNames
in interfaceUnnamedComponent
- Overrides:
getPropertyNames
in classAction
- Returns:
- Array of property names available.
-
getStoredPropertyNames
- Overrides:
getStoredPropertyNames
in classAction
- Returns:
- Array of property names which are persisted in the order in which they appear in the schema.
-
validate
Validate decision table action. Validate the action and the action node table. Validate that all action parameters have distinct names and that if parameterized, at least one parameter is defined ASSIGN_NEW action valid only if always selected -
put
override to set nodes' actionSelected property true if this alwaysSelected set to true -
getContainedExpressions
Get all expressions immediately contained in this action Note: in 11g this returned nested expressions as well, but this was never used.- Returns:
- List of Expressions
-
getExpressionByDTActionParameterName
Get Expression from this DTAction's contained expressions by DT action parameter name.- Parameters:
parameterName
- name of DT action parameter- Returns:
- Expression corresponding to value of named parameter, or null if no such parameter.
-
inScopeVariables
public List<ScopedVariable> inScopeVariables(boolean includeAggregates, VariableScope.ExprLocation direction) Description copied from class:RuleComponent
By default, pass the request to the container- Specified by:
inScopeVariables
in interfaceVariableScope
- Overrides:
inScopeVariables
in classAction
-
get
Description copied from class:Action
Generic property getter (override).get TARGET must convert from persistent to user format
-
DTRule.getDTActionNodeTableProperty()