public class DecisionGateway extends ProcessElement
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.config, id, scClassName
Constructor and Description |
---|
DecisionGateway() |
DecisionGateway(com.google.gwt.core.client.JavaScriptObject jsObj) |
Modifier and Type | Method and Description |
---|---|
com.google.gwt.core.client.JavaScriptObject |
create() |
java.util.LinkedHashMap |
getCriteriaMap()
A Map from
ID to Criteria that will cause this
ProcessElement to be chosen as the next element if the criteria matches. |
java.lang.String |
getDefaultElement()
Next element to pick if no criteria match.
|
static DecisionGateway |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj) |
void |
setCriteriaMap(java.util.LinkedHashMap<java.lang.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. |
void |
setDefaultElement(ProcessElement defaultElement) |
void |
setDefaultElement(java.lang.String defaultElement)
Next element to pick if no criteria match.
|
void |
setJavaScriptObject(com.google.gwt.core.client.JavaScriptObject jsObj) |
convertToJavaScriptArray, getID, getJsObj, getNextElement, getOrCreateJsObj, getProcessElements, isCreated, setAttribute, setID, setNextElement
asSGWTComponent, destroy, doAddHandler, doInit, error, error, errorIfNotCreated, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsJavaScriptObject, getAttributeAsMap, getAttributeAsString, getAttributeAsStringArray, getClassName, getConfig, getHandlerCount, getRef, getScClassName, internalSetID, internalSetID, onBind, onInit, registerID, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setProperty, setProperty, setProperty, setProperty, setScClassName
public DecisionGateway()
public DecisionGateway(com.google.gwt.core.client.JavaScriptObject jsObj)
public static DecisionGateway getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public void setJavaScriptObject(com.google.gwt.core.client.JavaScriptObject jsObj)
setJavaScriptObject
in class ProcessElement
public com.google.gwt.core.client.JavaScriptObject create()
create
in class ProcessElement
public void 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
- . See String
. Default value is nulljava.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.String
public void setCriteriaMap(java.util.LinkedHashMap<java.lang.String,Criteria> criteriaMap)
ID
to Criteria that will cause this
ProcessElement to be chosen as the next element if the criteria matches.criteriaMap
- criteriaMap Default value is nullpublic java.util.LinkedHashMap getCriteriaMap()
ID
to Criteria that will cause this
ProcessElement to be chosen as the next element if the criteria matches.public void setDefaultElement(ProcessElement defaultElement) throws java.lang.IllegalStateException
java.lang.IllegalStateException
setDefaultElement(String)