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()Deprecated. 
 in favor of  getDecisionList(). | 
| TaskDecision[] | getDecisionList()List of  TaskDecisionsto be processed to find the first with
 matching
 criteria. | 
| java.lang.String | getDefaultElement()Next element to pick if no criteria match. | 
| static DecisionGateway | getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj) | 
| DecisionGateway | setCriteriaMap(java.util.Map<java.lang.String,Criteria> criteriaMap)Deprecated. 
 In favor of  decisionListas of  SmartGWT
 release 12.1 | 
| DecisionGateway | setDecisionList(TaskDecision... decisionList)List of  TaskDecisionsto be processed to find the first with
 matching
 criteria. | 
| void | setDefaultElement(ProcessElement defaultElement) | 
| DecisionGateway | setDefaultElement(java.lang.String defaultElement)Next element to pick if no criteria match. | 
convertToJavaScriptArray, getClassDescription, getDescription, getEditorType, getElementDescription, getID, getJsObj, getNextElement, getOrCreateJsObj, getPassThruOutput, getProcessElements, getTitle, isCreated, onInit, setAttribute, setClassDescription, setDescription, setEditorType, setID, setJavaScriptObject, setNextElement, setPassThruOutput, setTitleaddDynamicProperty, 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, setScClassNamepublic 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 ProcessElementpublic DecisionGateway setCriteriaMap(java.util.Map<java.lang.String,Criteria> criteriaMap) throws java.lang.IllegalStateException
decisionList as of  SmartGWT
 release 12.1ProcessElement.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 to Criterion.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 - use Criterion.valuePath to refer to values in the Process.ruleScope.
criteriaMap - New criteriaMap value. Default value is nullDecisionGateway instance, for chaining setter callsjava.lang.IllegalStateException - this property cannot be changed after the underlying component has been createdpublic DecisionGateway setDecisionList(TaskDecision... decisionList) throws java.lang.IllegalStateException
TaskDecisions to be processed to find the first with
 matching
 criteria. The specified TaskDecision.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 DecisionGateway in XML, the decisionList is expressed as:
  
      <DecisionGateway ID="continentDecision" description="Which continent?" defaultElement="summary">
          <decisionList>
              <taskDecision targetTask="europeVATTask">
                  <criteria fieldName="order.continent" operator="equals" value="Europe" />
              </taskDecision>
              ...
          </decisionList>
      <DecisionGateway>
  decisionList - New decisionList value. Default value is nullDecisionGateway instance, for chaining setter callsjava.lang.IllegalStateException - this property cannot be changed after the underlying component has been createdpublic TaskDecision[] getDecisionList()
TaskDecisions to be processed to find the first with
 matching
 criteria. The specified TaskDecision.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 DecisionGateway in XML, the decisionList is expressed as:
  
      <DecisionGateway ID="continentDecision" description="Which continent?" defaultElement="summary">
          <decisionList>
              <taskDecision targetTask="europeVATTask">
                  <criteria fieldName="order.continent" operator="equals" value="Europe" />
              </taskDecision>
              ...
          </decisionList>
      <DecisionGateway>
  public DecisionGateway 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 nullDecisionGateway 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.public java.util.LinkedHashMap getCriteriaMap()
getDecisionList().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.IllegalStateExceptionsetDefaultElement(String)