|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.smartgwt.client.core.BaseClass
com.smartgwt.client.util.workflow.ProcessElement
com.smartgwt.client.util.workflow.XORGateway
public class XORGateway
Chooses one or another next process element based on AdvancedCriteria applied to 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.
| Field Summary |
|---|
| Fields inherited from class com.smartgwt.client.core.BaseClass |
|---|
config, id, scClassName |
| Constructor Summary | |
|---|---|
XORGateway()
|
|
XORGateway(JavaScriptObject jsObj)
|
|
XORGateway(String ID)
|
|
XORGateway(String ID,
ProcessElement nextElement,
ProcessElement failureElement)
|
|
XORGateway(String ID,
String nextElement,
String failureElement)
|
|
| Method Summary | |
|---|---|
JavaScriptObject |
create()
|
Criteria |
getCriteria()
Simple or AdvancedCriteria to be applied to the task inputs. |
String |
getFailureElement()
ID of the next sequence or element to proceed to if the criteria do not match. |
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(String failureElement)
ID of the next sequence or element to proceed to if the criteria do not match. |
void |
setNextElement(ProcessElement nextElement)
|
void |
setNextElement(String nextElement)
ID of the next sequence or {process.elements,element} to
procede to if the criteria match the process state. |
| Methods inherited from class com.smartgwt.client.util.workflow.ProcessElement |
|---|
convertToJavaScriptArray, getID, getJsObj, getOrCreateJsObj, getProcessElements, isCreated, setAttribute, setID |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XORGateway()
public XORGateway(JavaScriptObject jsObj)
public XORGateway(String ID)
public XORGateway(String ID,
String nextElement,
String failureElement)
public XORGateway(String ID,
ProcessElement nextElement,
ProcessElement failureElement)
| Method Detail |
|---|
public static XORGateway getOrCreateRef(JavaScriptObject jsObj)
public JavaScriptObject create()
create in class ProcessElement
public void setCriteria(Criteria criteria)
throws 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 - criteria Default value is IR
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(String failureElement)
throws IllegalStateException
failureElement - failureElement Default value is null
IllegalStateException - this property cannot be changed after the underlying component has been createdpublic String getFailureElement()
public void setNextElement(String nextElement)
throws 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 ProcessElementnextElement - nextElement Default value is null
IllegalStateException - this property cannot be changed after the underlying component has been createdpublic 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 IllegalStateException
IllegalStateExceptionsetFailureElement(String)
public void setNextElement(ProcessElement nextElement)
throws IllegalStateException
IllegalStateExceptionsetNextElement(String)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||