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) |
boolean |
shouldRun(StateObj state) |
boolean |
shouldSkip(StateObj state) |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetIdentitypublic 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 java.lang.String toString()
toString in class java.lang.Object