public class XORGateway extends ProcessElement
state
. If the AdvancedCriteria evaluate to true, the nextElement
is chosen, otherwise the failureElement
.
Note that "XOR" in
XORGateway
means "exclusive or" - only one next element is chosen. - implementation note: we need to allow
the propertyName in simple Criteria or the criterion.name in AdvancedCriterion to a be path of the form
"orderUser.name". This should be a general enhancement applied across the entire Criteria/AdvancedCriteria system.
config, factoryCreated, factoryProperties, id, scClassName
Constructor and Description |
---|
XORGateway() |
XORGateway(JavaScriptObject jsObj) |
XORGateway(java.lang.String ID,
ProcessElement nextElement,
ProcessElement failureElement) |
XORGateway(java.lang.String ID,
java.lang.String nextElement,
java.lang.String failureElement) |
Modifier and Type | Method and Description |
---|---|
JavaScriptObject |
create() |
Criteria |
getCriteria()
Simple or
AdvancedCriteria to be applied to the task inputs. |
java.lang.String |
getFailureElement()
ID of the next sequence or element to proceed to if the criteria do not match.
|
java.lang.String |
getNextElement()
ID of the next
sequence or {process.elements,element} to
procede to if the criteria match the process state. |
static XORGateway |
getOrCreateRef(JavaScriptObject jsObj) |
void |
setCriteria(Criteria criteria)
Simple or
AdvancedCriteria to be applied to the task inputs. |
void |
setFailureElement(ProcessElement failureElement) |
void |
setFailureElement(java.lang.String failureElement)
ID of the next sequence or element to proceed to if the criteria do not match.
|
void |
setNextElement(ProcessElement nextElement) |
void |
setNextElement(java.lang.String nextElement)
ID of the next
sequence or {process.elements,element} to
procede to if the criteria match the process state. |
convertToJavaScriptArray, getID, getJsObj, getOrCreateJsObj, getProcessElements, isCreated, onInit, setAttribute, setID, setJavaScriptObject
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, isFactoryCreated, onBind, registerID, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setConfig, setFactoryCreated, setProperty, setProperty, setProperty, setProperty, setScClassName
public XORGateway()
public XORGateway(JavaScriptObject jsObj)
public XORGateway(java.lang.String ID, java.lang.String nextElement, java.lang.String failureElement)
public XORGateway(java.lang.String ID, ProcessElement nextElement, ProcessElement failureElement)
public static XORGateway getOrCreateRef(JavaScriptObject jsObj)
public JavaScriptObject create()
create
in class ProcessElement
public void setCriteria(Criteria criteria) throws java.lang.IllegalStateException
AdvancedCriteria
to be applied to the task inputs. These will be applied to
either the data indicated by the inputField
or to the
"inputRecord" if multiple input fields are declared (see TaskIO
).criteria
- Default value is IRjava.lang.IllegalStateException
- this property cannot be changed after the underlying component has been createdpublic Criteria getCriteria()
AdvancedCriteria
to be applied to the task inputs. These will be applied to
either the data indicated by the inputField
or to the
"inputRecord" if multiple input fields are declared (see TaskIO
).public void setFailureElement(java.lang.String failureElement) throws java.lang.IllegalStateException
failureElement
- Default value is nulljava.lang.IllegalStateException
- this property cannot be changed after the underlying component has been createdpublic java.lang.String getFailureElement()
public void setNextElement(java.lang.String nextElement) throws java.lang.IllegalStateException
sequence
or {process.elements,element} to
procede to if the criteria match the process state. If this gateway is part of a sequence
and has a next element in the sequence,
nextElement
does not need to be specified.setNextElement
in class ProcessElement
nextElement
- Default value is nulljava.lang.IllegalStateException
- this property cannot be changed after the underlying component has been createdpublic java.lang.String getNextElement()
sequence
or {process.elements,element} to
procede to if the criteria match the process state. If this gateway is part of a sequence
and has a next element in the sequence,
nextElement
does not need to be specified.getNextElement
in class ProcessElement
public void setFailureElement(ProcessElement failureElement) throws java.lang.IllegalStateException
java.lang.IllegalStateException
setFailureElement(String)
public void setNextElement(ProcessElement nextElement) throws java.lang.IllegalStateException
java.lang.IllegalStateException
setNextElement(String)