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 SummaryFields inherited from class com.smartgwt.client.core.BaseClassconfig, configOnly, factoryCreated, factoryProperties, id, scClassName
- 
Constructor SummaryConstructorsConstructorDescriptionDecisionTask(JavaScriptObject jsObj) DecisionTask(String ID, String nextElement, String failureElement) 
- 
Method SummaryModifier and TypeMethodDescriptioncreate()Simple orAdvancedCriteriato be applied against theProcess.state.ID of the next sequence or element to proceed to if the criteria do not match.static DecisionTaskgetOrCreateRef(JavaScriptObject jsObj) setCriteria(Criteria criteria) Simple orAdvancedCriteriato 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.ProcessElementcompleteElement, 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, updateLastElementInValuesMethods inherited from class com.smartgwt.client.core.BaseClassaddDynamicProperty, 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- 
DecisionTaskpublic DecisionTask()
- 
DecisionTask
- 
DecisionTask
 
- 
- 
Method Details- 
getOrCreateRef
- 
create- Overrides:
- createin class- ProcessElement
 
- 
setCriteriaSimple orAdvancedCriteriato 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.valuePathto refer to values in theProcess.ruleScope.- Parameters:
- criteria- New criteria value. Default value is null
- Returns:
- DecisionTaskinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the underlying component has been created
 
- 
getCriteriaSimple orAdvancedCriteriato 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.valuePathto refer to values in theProcess.ruleScope.- Returns:
- Current criteria value. Default value is null
 
- 
setFailureElementID 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:
- DecisionTaskinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the underlying component has been created
 
- 
getFailureElementID of the next sequence or element to proceed to if the criteria do not match.- Returns:
- Current failureElement value. Default value is null
 
- 
setNextElementNextsequenceorelementto execute if the criteria match the process state.nextElementdoes not need to be specified if this element is part of asequenceand has a next element in the sequence.Note that if there is both a sequenceand a normalelementwith the same name in the currentProcess, thesequencewill be used.- Overrides:
- setNextElementin class- ProcessElement
- Parameters:
- nextElement- New nextElement value. Default value is null
- Returns:
- DecisionTaskinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the underlying component has been created
 
- 
getNextElementNextsequenceorelementto execute if the criteria match the process state.nextElementdoes not need to be specified if this element is part of asequenceand has a next element in the sequence.Note that if there is both a sequenceand a normalelementwith the same name in the currentProcess, thesequencewill be used.- Overrides:
- getNextElementin class- ProcessElement
- Returns:
- Current nextElement value. Default value is null
 
 
-