public class DecisionGateway 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 |
---|
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.Map<java.lang.String,Criteria> criteriaMap)
A Map from
ProcessElement.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.
|
convertToJavaScriptArray, getID, getJsObj, getNextElement, getOrCreateJsObj, getProcessElements, isCreated, onInit, setAttribute, setID, setJavaScriptObject, setNextElement
applyFactoryProperties, asSGWTComponent, createJsObj, destroy, doAddHandler, doInit, error, error, errorIfNotCreated, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsJavaScriptObject, getAttributeAsMap, getAttributeAsString, getAttributeAsStringArray, getClassName, getConfig, getHandlerCount, getRef, getScClassName, getTestInstance, hasAutoAssignedID, 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, setScClassName
public DecisionGateway()
public DecisionGateway(com.google.gwt.core.client.JavaScriptObject jsObj)
public static DecisionGateway getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public com.google.gwt.core.client.JavaScriptObject create()
create
in class ProcessElement
public void setCriteriaMap(java.util.Map<java.lang.String,Criteria> criteriaMap) throws java.lang.IllegalStateException
ProcessElement.ID
to Criteria that will cause
this ProcessElement to be chosen as the next element if the criteria matches.criteriaMap
- Default value is nulljava.lang.IllegalStateException
- this property cannot be changed after the underlying component has been createdpublic 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
- 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.public 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)