public class WaitForEventActionNode extends FlowNode
FlowNode.FlowNodeExecutionResult
Constructor and Description |
---|
WaitForEventActionNode(org.json.JSONObject object,
FlowEntry flowEntry) |
WaitForEventActionNode(String id,
String name,
FlowNode resumeNode,
FlowNode timeoutNode,
TimeUnit timeoutUnit,
Integer timeoutAmount,
EventFilterData eventFilterData) |
Modifier and Type | Method and Description |
---|---|
FlowNode.FlowNodeExecutionResult |
execute(FlowContext flowContext)
Executes this node and returns the next node to be executed.
|
EventFilterData |
getEventFilterData()
Returns the eventFilterData.
|
Collection<FlowNode> |
getFollowUps()
Returns all possible follow up nodes.
|
FlowNode |
getResumeNode()
Returns the resume node.
|
Integer |
getTimeoutAmount()
Returns the timeoutAmount.
|
FlowNode |
getTimeoutNode()
Returns the timeout node.
|
TimeUnit |
getTimeoutUnit()
Returns the timeoutUnit.
|
String |
getWaitingEventId()
Returns the waiting event identifier of self node.
|
org.json.JSONObject |
toJSONObject()
Returns the JSON representation of this node.
|
boolean |
validateStateAndLog(boolean checkAllNextNodes)
To permit edition when JSON flow is saved incorrectly in data base, the flow node constructor by JSON parameter need allows to load flow node variables
without exception when something already is wrong.
|
getAndValidateNotAnonymousUser, getFlowEntry, getId, getName, getNodeLogLabel, init, logError, logError
public WaitForEventActionNode(String id, String name, FlowNode resumeNode, FlowNode timeoutNode, TimeUnit timeoutUnit, Integer timeoutAmount, EventFilterData eventFilterData)
public WaitForEventActionNode(org.json.JSONObject object, FlowEntry flowEntry)
public org.json.JSONObject toJSONObject()
FlowNode
#FlowNode(JSONObject)
constructor.toJSONObject
in class FlowNode
public FlowNode.FlowNodeExecutionResult execute(FlowContext flowContext) throws PortalException
FlowNode
execute
in class FlowNode
flowContext
- the flow contextPortalException
public String getWaitingEventId() throws PortalException
PortalException
public boolean validateStateAndLog(boolean checkAllNextNodes)
FlowNode
validateStateAndLog
in class FlowNode
checkAllNextNodes
- check all next nodes nodes.public FlowNode getResumeNode()
public FlowNode getTimeoutNode()
public TimeUnit getTimeoutUnit()
public Integer getTimeoutAmount()
public Collection<FlowNode> getFollowUps()
FlowNode
getFollowUps
in class FlowNode
public EventFilterData getEventFilterData()
LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.