public class StepOperation extends java.lang.Object implements WorkflowSystem.Operation<WFSharedContext,OperationCompleted>
Constructor and Description |
---|
StepOperation(int stepNum,
java.lang.String label,
StepCallable callable,
StateObj startTriggerState,
StateObj skipTriggerState,
java.util.Set<Condition> startTriggerConditions,
java.util.Set<Condition> skipTriggerConditions) |
Modifier and Type | Method and Description |
---|---|
OperationCompleted |
apply(WFSharedContext context) |
StateObj |
getFailureState(java.lang.Throwable t) |
StateObj |
getSkipState(StateObj state) |
java.util.Set<Condition> |
getSkipTriggerConditions() |
java.util.Set<Condition> |
getStartTriggerConditions() |
int |
getStepNum() |
boolean |
isDidRun() |
boolean |
shouldRun(StateObj state) |
boolean |
shouldSkip(StateObj state) |
java.lang.String |
toString() |
public StepOperation(int stepNum, java.lang.String label, StepCallable callable, StateObj startTriggerState, StateObj skipTriggerState, java.util.Set<Condition> startTriggerConditions, java.util.Set<Condition> skipTriggerConditions)
public boolean shouldRun(StateObj state)
shouldRun
in interface WorkflowSystem.Operation<WFSharedContext,OperationCompleted>
state
- current statepublic boolean shouldSkip(StateObj state)
shouldSkip
in interface WorkflowSystem.Operation<WFSharedContext,OperationCompleted>
state
- current statepublic OperationCompleted apply(WFSharedContext context)
apply
in interface java.util.function.Function<WFSharedContext,OperationCompleted>
public StateObj getSkipState(StateObj state)
getSkipState
in interface WorkflowSystem.Operation<WFSharedContext,OperationCompleted>
state
- current statepublic StateObj getFailureState(java.lang.Throwable t)
getFailureState
in interface WorkflowSystem.Operation<WFSharedContext,OperationCompleted>
t
- throwablepublic boolean isDidRun()
public java.lang.String toString()
toString
in class java.lang.Object
public int getStepNum()
public java.util.Set<Condition> getStartTriggerConditions()
public java.util.Set<Condition> getSkipTriggerConditions()