public class DecisionTask extends ProcessElement
Process.state. If the AdvancedCriteria evaluate to true, the
nextElement is chosen, otherwise the failureElement.
config, configOnly, factoryCreated, factoryProperties, id, scClassName| Constructor and Description |
|---|
DecisionTask() |
DecisionTask(com.google.gwt.core.client.JavaScriptObject jsObj) |
DecisionTask(java.lang.String ID,
java.lang.String nextElement,
java.lang.String failureElement) |
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.core.client.JavaScriptObject |
create() |
Criteria |
getCriteria()
Simple or
AdvancedCriteria to be applied against the Process.state. |
java.lang.String |
getFailureElement()
ID of the next sequence or element to proceed to if the criteria do not match.
|
java.lang.String |
getNextElement()
|
static DecisionTask |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj) |
DecisionTask |
setCriteria(Criteria criteria)
Simple or
AdvancedCriteria to be applied against the Process.state. |
DecisionTask |
setFailureElement(java.lang.String failureElement)
ID of the next sequence or element to proceed to if the criteria do not match.
|
DecisionTask |
setNextElement(java.lang.String nextElement)
|
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, updateLastElementInValuesaddDynamicProperty, 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, setScClassNamepublic DecisionTask()
public DecisionTask(com.google.gwt.core.client.JavaScriptObject jsObj)
public DecisionTask(java.lang.String ID,
java.lang.String nextElement,
java.lang.String failureElement)
public static DecisionTask getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public com.google.gwt.core.client.JavaScriptObject create()
create in class ProcessElementpublic DecisionTask setCriteria(Criteria criteria) throws java.lang.IllegalStateException
AdvancedCriteria to be applied against the Process.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 to Criterion.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 - use Criterion.valuePath to refer to values in the Process.ruleScope.
criteria - New criteria value. Default value is nullDecisionTask instance, for chaining setter callsjava.lang.IllegalStateException - this property cannot be changed after the underlying component has been createdpublic Criteria getCriteria()
AdvancedCriteria to be applied against the Process.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 to Criterion.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 - use Criterion.valuePath to refer to values in the Process.ruleScope.
public DecisionTask setFailureElement(java.lang.String failureElement) throws java.lang.IllegalStateException
failureElement - New failureElement value. Default value is nullDecisionTask instance, for chaining setter callsjava.lang.IllegalStateException - this property cannot be changed after the underlying component has been createdpublic java.lang.String getFailureElement()
public DecisionTask setNextElement(java.lang.String nextElement) throws java.lang.IllegalStateException
sequence or element to execute if the criteria match the process state.
nextElement does not need to be specified if this element is part of a sequence and has a next element in the sequence.
Note that
if there is both a sequence and a normal element with the same name in the current
Process, the sequence will be used.
setNextElement in class ProcessElementnextElement - New nextElement value. Default value is nullDecisionTask instance, for chaining setter callsjava.lang.IllegalStateException - this property cannot be changed after the underlying component has been createdpublic java.lang.String getNextElement()
sequence or element to execute if the criteria match the process state.
nextElement does not need to be specified if this element is part of a sequence and has a next element in the sequence.
Note that
if there is both a sequence and a normal element with the same name in the current
Process, the sequence will be used.
getNextElement in class ProcessElement