Package com.dtolabs.rundeck.core.rules
Interface WorkflowSystem.Operation<X,T extends WorkflowSystem.OperationCompleted>
-
- Type Parameters:
T- result type
- All Superinterfaces:
java.util.function.Function<X,T>
- All Known Implementing Classes:
StepOperation
- Enclosing interface:
- WorkflowSystem<P>
public static interface WorkflowSystem.Operation<X,T extends WorkflowSystem.OperationCompleted> extends java.util.function.Function<X,T>An operation which returns a success result object
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StateObjgetFailureState(java.lang.Throwable t)java.lang.StringgetIdentity()Identifier for the operationStateObjgetSkipState(StateObj state)booleanshouldRun(StateObj state)booleanshouldSkip(StateObj state)
-
-
-
Method Detail
-
getIdentity
java.lang.String getIdentity()
Identifier for the operation
-
shouldRun
boolean shouldRun(StateObj state)
- Parameters:
state- current state- Returns:
- true if the operation should run given the state shown
-
shouldSkip
boolean shouldSkip(StateObj state)
- Parameters:
state- current state- Returns:
- true if the operation should be skipped and never run
-
getSkipState
StateObj getSkipState(StateObj state)
- Parameters:
state- current state- Returns:
- state change if operation is skipped
-
getFailureState
StateObj getFailureState(java.lang.Throwable t)
- Parameters:
t- throwable- Returns:
- new state changes if the operation failed
-
-