Class DecisionBranch
- All Implemented Interfaces:
HasHandlers
- Direct Known Subclasses:
TaskDecision
MultiDecisionTask
. Each decision has a
criteria and a target ProcessElement ID.-
Field Summary
Fields inherited from class com.smartgwt.client.core.DataClass
factoryCreated, factoryProperties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCriteria identifying when thetargetTask
should be chosen within aMultiDecisionTask.decisionList
.static DecisionBranch
getOrCreateRef
(JavaScriptObject jsObj) ProcessElement.ID
of element to be used as next element ifcriteria
matches.setCriteria
(Criteria criteria) Criteria identifying when thetargetTask
should be chosen within aMultiDecisionTask.decisionList
.setTargetTask
(String targetTask) ProcessElement.ID
of element to be used as next element ifcriteria
matches.Methods inherited from class com.smartgwt.client.core.DataClass
applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated
-
Constructor Details
-
DecisionBranch
public DecisionBranch() -
DecisionBranch
-
-
Method Details
-
getOrCreateRef
-
setCriteria
Criteria identifying when thetargetTask
should be chosen within aMultiDecisionTask.decisionList
.Data values in this criteria prefixed with "$" will be treated as dynamic expressions as detailed in
TaskInputExpression
. Specifically, this means that for simple criteria, any property value that is a String and is prefixed with "$" will be assumed to be an expression, and for AdvancedCriteria, the same treatment will be applied toCriterion.value
.Note that dynamic expressions starting with "$input" are not applicable in this context but "$inputRecord" can be used for direct reference to
Process.state
.This property supports
DynamicCriteria
- useCriterion.valuePath
to refer to values in theProcess.ruleScope
.- Parameters:
criteria
- New criteria value. Default value is null- Returns:
DecisionBranch
instance, for chaining setter calls
-
getCriteria
Criteria identifying when thetargetTask
should be chosen within aMultiDecisionTask.decisionList
.Data values in this criteria prefixed with "$" will be treated as dynamic expressions as detailed in
TaskInputExpression
. Specifically, this means that for simple criteria, any property value that is a String and is prefixed with "$" will be assumed to be an expression, and for AdvancedCriteria, the same treatment will be applied toCriterion.value
.Note that dynamic expressions starting with "$input" are not applicable in this context but "$inputRecord" can be used for direct reference to
Process.state
.This property supports
DynamicCriteria
- useCriterion.valuePath
to refer to values in theProcess.ruleScope
.- Returns:
- Current criteria value. Default value is null
-
setTargetTask
ProcessElement.ID
of element to be used as next element ifcriteria
matches.- Parameters:
targetTask
- New targetTask value. Default value is null- Returns:
DecisionBranch
instance, for chaining setter calls
-
getTargetTask
ProcessElement.ID
of element to be used as next element ifcriteria
matches.- Returns:
- Current targetTask value. Default value is null
-