Class DecisionTask
- All Implemented Interfaces:
HasHandlers
- Direct Known Subclasses:
XORGateway
Process.state
. If the AdvancedCriteria evaluate to true, the
nextElement
is chosen, otherwise the failureElement
.
-
Field Summary
Fields inherited from class com.smartgwt.client.core.BaseClass
config, configOnly, factoryCreated, factoryProperties, id, scClassName
-
Constructor Summary
ConstructorDescriptionDecisionTask
(JavaScriptObject jsObj) DecisionTask
(String ID, String nextElement, String failureElement) -
Method Summary
Modifier and TypeMethodDescriptioncreate()
Simple orAdvancedCriteria
to be applied against theProcess.state
.ID of the next sequence or element to proceed to if the criteria do not match.static DecisionTask
getOrCreateRef
(JavaScriptObject jsObj) setCriteria
(Criteria criteria) Simple orAdvancedCriteria
to be applied against theProcess.state
.setFailureElement
(String failureElement) ID of the next sequence or element to proceed to if the criteria do not match.setNextElement
(String nextElement) Methods inherited from class com.smartgwt.client.util.workflow.ProcessElement
completeElement, convertToJavaScriptArray, executeElement, getBindOutput, getClassDescription, getComponentReferences, getDescription, getDynamicValue, getEditorType, getElementDescription, getForceSingle, getID, getInvalidTaskMessage, getJsObj, getMockMode, getOrCreateJsObj, getPassThruOutput, getProcessElements, getSupportsMultipleInputRecords, getTextFormulaValue, getTypeTitle, getUndefinedComponentMessage, getUnresolvedComponentMessage, getWaitDuration, getWaitFor, getWaitLocator, isCreated, isValid, objectReferencesLastTaskOutput, onInit, reset, setAttribute, setBindOutput, setClassDescription, setDescription, setEditorType, setForceSingle, setID, setJavaScriptObject, setMockMode, setPassThruOutput, setSupportsMultipleInputRecords, setTypeTitle, setUndefinedComponentMessage, setUnresolvedComponentMessage, setWaitDuration, setWaitFor, setWaitLocator, updateGlobalIDInCriteria, updateGlobalIDInTextFormula, updateGlobalIDInValueProperty, updateGlobalIDInValues, updateGlobalIDReferences, updateLastElementBindingReferences, updateLastElementInCriteria, updateLastElementInValueProperty, updateLastElementInValues
Methods inherited from class com.smartgwt.client.core.BaseClass
addDynamicProperty, addDynamicProperty, addDynamicProperty, addDynamicProperty, applyFactoryProperties, asSGWTComponent, clearDynamicProperty, createJsObj, destroy, doAddHandler, doInit, error, error, errorIfNotCreated, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsJavaScriptObject, getAttributeAsMap, getAttributeAsString, getAttributeAsStringArray, getClassName, getConfig, getHandlerCount, getRef, getRuleScope, getScClassName, getTestInstance, hasAutoAssignedID, hasDynamicProperty, internalSetID, internalSetID, isConfigOnly, isFactoryCreated, onBind, registerID, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setConfig, setConfigOnly, setFactoryCreated, setProperty, setProperty, setProperty, setProperty, setRuleScope, setScClassName
-
Constructor Details
-
DecisionTask
public DecisionTask() -
DecisionTask
-
DecisionTask
-
-
Method Details
-
getOrCreateRef
-
create
- Overrides:
create
in classProcessElement
-
setCriteria
Simple orAdvancedCriteria
to be applied against theProcess.state
.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 for an DecisionTask 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:
DecisionTask
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getCriteria
Simple orAdvancedCriteria
to be applied against theProcess.state
.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 for an DecisionTask 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
-
setFailureElement
ID of the next sequence or element to proceed to if the criteria do not match.- Parameters:
failureElement
- New failureElement value. Default value is null- Returns:
DecisionTask
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getFailureElement
ID of the next sequence or element to proceed to if the criteria do not match.- Returns:
- Current failureElement value. Default value is null
-
setNextElement
Nextsequence
orelement
to execute if the criteria match the process state.nextElement
does not need to be specified if this element is part of asequence
and has a next element in the sequence.Note that if there is both a
sequence
and a normalelement
with the same name in the currentProcess
, thesequence
will be used.- Overrides:
setNextElement
in classProcessElement
- Parameters:
nextElement
- New nextElement value. Default value is null- Returns:
DecisionTask
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getNextElement
Nextsequence
orelement
to execute if the criteria match the process state.nextElement
does not need to be specified if this element is part of asequence
and has a next element in the sequence.Note that if there is both a
sequence
and a normalelement
with the same name in the currentProcess
, thesequence
will be used.- Overrides:
getNextElement
in classProcessElement
- Returns:
- Current nextElement value. Default value is null
-