public class JsrStepState extends StepState
StepState
to persist what the
last step that was executed was (used in Decisions and restarts).Constructor and Description |
---|
JsrStepState(Step step) |
JsrStepState(java.lang.String name,
Step step) |
Modifier and Type | Method and Description |
---|---|
FlowExecutionStatus |
handle(FlowExecutor executor)
Handle some business or processing logic and return a status that can be
used to drive a flow to the next
State . |
getStep, getStep, getStepNames, isEndState
getName, toString
public JsrStepState(Step step)
step
- the step that will be executedpublic JsrStepState(java.lang.String name, Step step)
name
- for the step that will be executedstep
- the step that will be executedpublic FlowExecutionStatus handle(FlowExecutor executor) throws java.lang.Exception
State
State
. The status can be any
string, but special meaning is assigned to the static constants in
FlowExecution
. The context can be used by implementations to do
whatever they need to do. The same context will be passed to all
State
instances, so implementations should be careful that the
context is thread-safe, or used in a thread-safe manner.