public class FlowExecutionResult
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static FlowExecutionResult |
createEndedResult(java.lang.String flowId,
FlowExecutionOutcome outcome)
Factory method that creates a ended result, indicating the flow terminated after handling the request.
|
static FlowExecutionResult |
createPausedResult(java.lang.String flowId,
java.lang.String flowExecutionKey)
Factory method that creates a paused result, indicating the flow is now in a wait state after handling the
request.
|
java.lang.String |
getFlowId()
Returns the flow definition that completed execution.
|
FlowExecutionOutcome |
getOutcome()
Returns the flow execution outcome when an ended result.
|
java.lang.String |
getPausedKey()
Returns the key needed to resume the flow execution when a paused result.
|
boolean |
isEnded()
Returns true if the flow execution ended.
|
boolean |
isPaused()
Returns true if the flow execution paused and is now in a wait state.
|
public static FlowExecutionResult createPausedResult(java.lang.String flowId, java.lang.String flowExecutionKey)
flowId
- the flow idflowExecutionKey
- the flow execution keypublic static FlowExecutionResult createEndedResult(java.lang.String flowId, FlowExecutionOutcome outcome)
flowId
- the flow idoutcome
- the ending execution outcomepublic java.lang.String getFlowId()
public boolean isPaused()
public java.lang.String getPausedKey()
isPaused()
public boolean isEnded()
public FlowExecutionOutcome getOutcome()
null
if this is not an ended resultisEnded()