Package org.sterl.pmw.model
Class WorkflowFactory<T extends Serializable>
java.lang.Object
org.sterl.pmw.model.WorkflowFactory<T>
- Type Parameters:
T- the workflow step type
- All Implemented Interfaces:
StepHolder<WorkflowFactory<T>,T>
public class WorkflowFactory<T extends Serializable>
extends Object
implements StepHolder<WorkflowFactory<T>,T>
-
Method Summary
Modifier and TypeMethodDescriptionThis step will wait for a signal/resume using theWorkflowContext.nextTaskId()and allows to update the workflow state for the next step.This step will wait for a signal/resume using theWorkflowContext.nextTaskId()and allows to update the workflow state for the next step.build()choose()Allows to select multiple different named steps by returning the name of the step to execute.choose(String id, WorkflowChooseFunction<T> chooseFn) Allows to select multiple different named steps by returning the name of the step to execute.choose(WorkflowChooseFunction<T> chooseFn) Allows to select multiple different named steps by returning the name of the step to execute.next(WorkflowStep<T> s) stepRetryStrategy(org.sterl.spring.persistent_tasks.api.RetryStrategy retryStrategy) steps()<TS extends Serializable>
WorkflowFactory<T> Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.sterl.pmw.model.StepHolder
forkWorkflow, next, next, next, next
-
Method Details
-
onLastStepError
-
trigger
public <TS extends Serializable> WorkflowFactory<T> trigger(Workflow<TS> toTrigger, Function<T, TS> fn) -
sleep
-
sleep
-
sleep
-
sleep
-
sleep
-
stepRetryStrategy
public WorkflowFactory<T> stepRetryStrategy(org.sterl.spring.persistent_tasks.api.RetryStrategy retryStrategy) -
build
-
choose
Allows to select multiple different named steps by returning the name of the step to execute. -
choose
Allows to select multiple different named steps by returning the name of the step to execute. -
choose
Allows to select multiple different named steps by returning the name of the step to execute. -
nextStepId
- Specified by:
nextStepIdin interfaceStepHolder<WorkflowFactory<T extends Serializable>,T extends Serializable>
-
next
- Specified by:
nextin interfaceStepHolder<WorkflowFactory<T extends Serializable>,T extends Serializable> - Parameters:
s- The step to add- Returns:
- the holder for chaining
-
useId
-
steps
- Specified by:
stepsin interfaceStepHolder<WorkflowFactory<T extends Serializable>,T extends Serializable>
-
await
This step will wait for a signal/resume using theWorkflowContext.nextTaskId()and allows to update the workflow state for the next step. -
await
This step will wait for a signal/resume using theWorkflowContext.nextTaskId()and allows to update the workflow state for the next step.
-