public class MultiDecisionTask extends ProcessElement
Process
by evaluating a series of criteria against
the Process.state
and choosing the element associated with
the criteria that matched, or a defaultElement
if none of the criteria match.config, configOnly, factoryCreated, factoryProperties, id, scClassName
Constructor and Description |
---|
MultiDecisionTask() |
MultiDecisionTask(com.google.gwt.core.client.JavaScriptObject jsObj) |
Modifier and Type | Method and Description |
---|---|
com.google.gwt.core.client.JavaScriptObject |
create() |
DecisionBranch[] |
getDecisionList()
List of
DecisionBranchs to be processed to find the first with
matching
criteria. |
java.lang.String |
getDefaultElement()
Next element to pick if no criteria match.
|
static MultiDecisionTask |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj) |
MultiDecisionTask |
setDecisionList(DecisionBranch... decisionList)
List of
DecisionBranchs to be processed to find the first with
matching
criteria. |
MultiDecisionTask |
setDefaultElement(java.lang.String defaultElement)
Next element to pick if no criteria match.
|
completeElement, convertToJavaScriptArray, executeElement, getBindOutput, getClassDescription, getDescription, getDynamicValue, getEditorType, getElementDescription, getForceSingle, getID, getJsObj, getMockMode, getNextElement, getOrCreateJsObj, getPassThruOutput, getProcessElements, getSupportsMultipleInputRecords, getTextFormulaValue, getTypeTitle, isCreated, objectReferencesLastTaskOutput, onInit, reset, setAttribute, setBindOutput, setClassDescription, setDescription, setEditorType, setForceSingle, setID, setJavaScriptObject, setMockMode, setNextElement, setPassThruOutput, setSupportsMultipleInputRecords, setTypeTitle, updateGlobalIDInCriteria, updateGlobalIDInValueProperty, updateGlobalIDInValues, updateGlobalIDReferences, updateLastElementBindingReferences, updateLastElementInCriteria, updateLastElementInValueProperty, updateLastElementInValues
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
public MultiDecisionTask()
public MultiDecisionTask(com.google.gwt.core.client.JavaScriptObject jsObj)
public static MultiDecisionTask getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public com.google.gwt.core.client.JavaScriptObject create()
create
in class ProcessElement
public MultiDecisionTask setDecisionList(DecisionBranch... decisionList) throws java.lang.IllegalStateException
DecisionBranchs
to be processed to find the first with
matching
criteria. The specified DecisionBranch.targetTask
is then used to identify the the next
element.
If no criteria is matched the next element is defaultElement
or the workflow
is finished.
When providing a MultiDecisionTask in XML, the decisionList
is expressed as:
<MultiDecisionTask ID="continentDecision" description="Which continent?" defaultElement="summary"> <decisionList> <decisionBranch targetTask="europeVATTask"> <criteria fieldName="order.continent" operator="equals" value="Europe" /> </decisionBranch> ... </decisionList> <MultiDecisionTask>
decisionList
- New decisionList value. Default value is nullMultiDecisionTask
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the underlying component has been createdpublic DecisionBranch[] getDecisionList()
DecisionBranchs
to be processed to find the first with
matching
criteria. The specified DecisionBranch.targetTask
is then used to identify the the next
element.
If no criteria is matched the next element is defaultElement
or the workflow
is finished.
When providing a MultiDecisionTask in XML, the decisionList
is expressed as:
<MultiDecisionTask ID="continentDecision" description="Which continent?" defaultElement="summary"> <decisionList> <decisionBranch targetTask="europeVATTask"> <criteria fieldName="order.continent" operator="equals" value="Europe" /> </decisionBranch> ... </decisionList> <MultiDecisionTask>
public MultiDecisionTask setDefaultElement(java.lang.String defaultElement) throws java.lang.IllegalStateException
sequence
and has a next element in the sequence, the
defaultElement
is assumed to be the next element and does not need to be specified.defaultElement
- New defaultElement value. Default value is nullMultiDecisionTask
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the underlying component has been createdpublic java.lang.String getDefaultElement()
sequence
and has a next element in the sequence, the
defaultElement
is assumed to be the next element and does not need to be specified.