Class DecisionGateway
java.lang.Object
com.smartgwt.client.core.BaseClass
com.smartgwt.client.util.workflow.ProcessElement
com.smartgwt.client.util.workflow.MultiDecisionTask
com.smartgwt.client.util.workflow.DecisionGateway
- All Implemented Interfaces:
HasHandlers
Chooses a next element in a
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.-
Field Summary
Fields inherited from class com.smartgwt.client.core.BaseClass
config, configOnly, factoryCreated, factoryProperties, id, scClassName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate()
Deprecated.static DecisionGateway
getOrCreateRef
(JavaScriptObject jsObj) setCriteriaMap
(Map<String, Criteria> criteriaMap) Deprecated.In favor ofdecisionList
as of SmartGWT release 12.1void
setDefaultElement
(ProcessElement defaultElement) Methods inherited from class com.smartgwt.client.util.workflow.MultiDecisionTask
getDecisionList, getDefaultElement, setDecisionList, setDefaultElement
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, getNextElement, 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, setNextElement, 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
-
DecisionGateway
public DecisionGateway() -
DecisionGateway
-
-
Method Details
-
getOrCreateRef
-
create
- Overrides:
create
in classMultiDecisionTask
-
setCriteriaMap
public DecisionGateway setCriteriaMap(Map<String, Criteria> criteriaMap) throws IllegalStateExceptionDeprecated.In favor ofdecisionList
as of SmartGWT release 12.1A Map fromProcessElement.ID
to Criteria that will cause this ProcessElement to be chosen as the next element if the criteria matches.If no criteria is matched the next element is
defaultElement
or the workflow is finished.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 decisionGateway 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:
criteriaMap
- New criteriaMap value. Default value is null- Returns:
DecisionGateway
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getCriteriaMap
Deprecated.in favor ofMultiDecisionTask.getDecisionList()
.A Map fromID
to Criteria that will cause this ProcessElement to be chosen as the next element if the criteria matches.- Returns:
- LinkedHashMap<String,Criteria>
-
setDefaultElement
- Throws:
IllegalStateException
- See Also:
-
MultiDecisionTask.getDecisionList()
.