Package org.sterl.pmw.spring.component
Class WorkflowStepComponent.SimpleWorkflowContext<T extends Serializable>
java.lang.Object
org.sterl.pmw.spring.component.WorkflowStepComponent.SimpleWorkflowContext<T>
- All Implemented Interfaces:
WorkflowContext<T>
- Enclosing class:
WorkflowStepComponent<T extends Serializable>
public static class WorkflowStepComponent.SimpleWorkflowContext<T extends Serializable>
extends Object
implements WorkflowContext<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<R extends Serializable>
voidaddCommand(TriggerWorkflowCommand<R> command) This method shouldn't be directly called, use the trigger factory method of the workflow builder.voidComplete and commit the current step but cancel any other steps.data()voiddelayNextStepBy(Duration duration) This method shouldn't be directly called, use the sleep factory method of the workflow builder.int
-
Constructor Details
-
SimpleWorkflowContext
public SimpleWorkflowContext()
-
-
Method Details
-
delayNextStepBy
Description copied from interface:WorkflowContextThis method shouldn't be directly called, use the sleep factory method of the workflow builder.- Specified by:
delayNextStepByin interfaceWorkflowContext<T extends Serializable>
-
cancelWorkflow
public void cancelWorkflow()Description copied from interface:WorkflowContextComplete and commit the current step but cancel any other steps.- Specified by:
cancelWorkflowin interfaceWorkflowContext<T extends Serializable>
-
executionCount
public int executionCount()- Specified by:
executionCountin interfaceWorkflowContext<T extends Serializable>
-
data
- Specified by:
datain interfaceWorkflowContext<T extends Serializable>
-
addCommand
Description copied from interface:WorkflowContextThis method shouldn't be directly called, use the trigger factory method of the workflow builder.- Specified by:
addCommandin interfaceWorkflowContext<T extends Serializable>
-