Package org.sterl.pmw.model
Interface WorkflowContext<T extends Serializable>
- All Known Implementing Classes:
WorkflowStepComponent.SimpleWorkflowContext
public interface WorkflowContext<T extends Serializable>
Context of the given workflow, which allows e.g.
-
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.intIn case of a own resume this gives the reference to the next task id.
-
Method Details
-
data
T data() -
cancelWorkflow
void cancelWorkflow()Complete and commit the current step but cancel any other steps. -
executionCount
int executionCount() -
delayNextStepBy
This method shouldn't be directly called, use the sleep factory method of the workflow builder. -
nextTaskId
String nextTaskId()In case of a own resume this gives the reference to the next task id. -
addCommand
This method shouldn't be directly called, use the trigger factory method of the workflow builder.
-