com.smartgwt.client.util.workflow
Class DecisionGateway
java.lang.Object
com.smartgwt.client.core.BaseClass
com.smartgwt.client.util.workflow.ProcessElement
com.smartgwt.client.util.workflow.DecisionGateway
public class DecisionGateway
- extends ProcessElement
Chooses a next element in a Process by evaluating a series of criteria against
the state and choosing the element associated with the
criteria that matched, or a defaultElement
if none of the criteria match.
| Methods inherited from class com.smartgwt.client.core.BaseClass |
destroy, doAddHandler, error, error, errorIfNotCreated, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsJavaScriptObject, getAttributeAsMap, getAttributeAsString, getAttributeAsStringArray, getConfig, getHandlerCount, getRef, getScClassName, onInit, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setProperty, setProperty, setProperty, setProperty, setScClassName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DecisionGateway
public DecisionGateway()
DecisionGateway
public DecisionGateway(JavaScriptObject jsObj)
getOrCreateRef
public static DecisionGateway getOrCreateRef(JavaScriptObject jsObj)
setJavaScriptObject
public void setJavaScriptObject(JavaScriptObject jsObj)
- Overrides:
setJavaScriptObject in class ProcessElement
create
public JavaScriptObject create()
- Overrides:
create in class ProcessElement
setDefaultElement
public void setDefaultElement(String defaultElement)
throws IllegalStateException
- Next element to pick if no criteria match. If this gateway is part of a
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.
- Parameters:
defaultElement - . See String. Default value is null
- Throws:
IllegalStateException - this property cannot be changed after the underlying component has been created
getDefaultElement
public String getDefaultElement()
- Next element to pick if no criteria match. If this gateway is part of a
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.
- Returns:
- . See
String
setCriteriaMap
public void setCriteriaMap(LinkedHashMap<String,Criteria> criteriaMap)
- A Map from
ID to Criteria that will cause this
ProcessElement to be chosen as the next element if the criteria matches.
- Parameters:
criteriaMap - criteriaMap Default value is null
getCriteriaMap
public LinkedHashMap getCriteriaMap()
- A Map from
ID to Criteria that will cause this
ProcessElement to be chosen as the next element if the criteria matches.
- Returns:
- LinkedHashMap
setDefaultElement
public void setDefaultElement(ProcessElement defaultElement)
throws IllegalStateException
- Throws:
IllegalStateException- See Also:
setDefaultElement(String)