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 void
Continue()
execution continuesControlBehavior
getControlBehavior()
java.lang.String
getStatusString()
void
Halt(boolean success)
execution halts with success or failurevoid
Halt(java.lang.String statusString)
execution halts with custom statusboolean
isControlled()
boolean
isCustomStatusString()
boolean
isSuccess()
java.lang.String
toString()
-
-
-
Method Detail
-
Halt
public void Halt(java.lang.String statusString)
Description copied from interface:FlowControl
execution halts with custom status- Specified by:
Halt
in interfaceFlowControl
-
Halt
public void Halt(boolean success)
Description copied from interface:FlowControl
execution halts with success or failure- Specified by:
Halt
in interfaceFlowControl
-
Continue
public void Continue()
Description copied from interface:FlowControl
execution continues- Specified by:
Continue
in interfaceFlowControl
-
getStatusString
public java.lang.String getStatusString()
- Specified by:
getStatusString
in interfaceWorkflowStatusResult
- Returns:
- status string
-
isCustomStatusString
public boolean isCustomStatusString()
-
getControlBehavior
public ControlBehavior getControlBehavior()
- Specified by:
getControlBehavior
in interfaceWorkflowStatusResult
- Returns:
- flow control behavior to use
-
isSuccess
public boolean isSuccess()
- Specified by:
isSuccess
in 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:
toString
in classjava.lang.Object
-
-