Class FlowController
- java.lang.Object
-
- com.dtolabs.rundeck.core.execution.workflow.FlowController
-
- All Implemented Interfaces:
StatusResult,FlowControl,WorkflowStatusResult
public class FlowController extends java.lang.Object implements FlowControl, WorkflowStatusResult
record flow control
-
-
Field Summary
-
Fields inherited from interface com.dtolabs.rundeck.core.execution.workflow.FlowControl
STATUS_FAILED, STATUS_SUCCEEDED
-
-
Constructor Summary
Constructors Constructor Description FlowController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidContinue()execution continuesControlBehaviorgetControlBehavior()java.lang.StringgetStatusString()voidHalt(boolean success)execution halts with success or failurevoidHalt(java.lang.String statusString)execution halts with custom statusbooleanisControlled()booleanisCustomStatusString()booleanisSuccess()java.lang.StringtoString()
-
-
-
Method Detail
-
Halt
public void Halt(java.lang.String statusString)
Description copied from interface:FlowControlexecution halts with custom status- Specified by:
Haltin interfaceFlowControl
-
Halt
public void Halt(boolean success)
Description copied from interface:FlowControlexecution halts with success or failure- Specified by:
Haltin interfaceFlowControl
-
Continue
public void Continue()
Description copied from interface:FlowControlexecution continues- Specified by:
Continuein interfaceFlowControl
-
getStatusString
public java.lang.String getStatusString()
- Specified by:
getStatusStringin interfaceWorkflowStatusResult- Returns:
- status string
-
isCustomStatusString
public boolean isCustomStatusString()
-
getControlBehavior
public ControlBehavior getControlBehavior()
- Specified by:
getControlBehaviorin interfaceWorkflowStatusResult- Returns:
- flow control behavior to use
-
isSuccess
public boolean isSuccess()
- Specified by:
isSuccessin interfaceStatusResult- Returns:
- true if the result was successful
-
isControlled
public boolean isControlled()
- Returns:
- true if Halt or Continue has been called.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-