Uses of Interface
io.nflow.engine.workflow.definition.WorkflowState
-
Packages that use WorkflowState Package Description io.nflow.engine.internal.workflow io.nflow.engine.workflow.curated io.nflow.engine.workflow.definition Classes and interfaces for describing and implementing workflow definitions.io.nflow.engine.workflow.instance Classes for describing and constructing workflow instances. -
-
Uses of WorkflowState in io.nflow.engine.internal.workflow
Methods in io.nflow.engine.internal.workflow that return WorkflowState Modifier and Type Method Description WorkflowStateStateExecutionImpl. getNextState()Methods in io.nflow.engine.internal.workflow that return types with arguments of type WorkflowState Modifier and Type Method Description Set<WorkflowState>WorkflowDefinitionScanner. getPublicStaticWorkflowStates(Class<? extends WorkflowDefinition> definition)Methods in io.nflow.engine.internal.workflow with parameters of type WorkflowState Modifier and Type Method Description voidStateExecutionImpl. setNextState(WorkflowState state) -
Uses of WorkflowState in io.nflow.engine.workflow.curated
Classes in io.nflow.engine.workflow.curated that implement WorkflowState Modifier and Type Class Description classStateA simple implementation of the WorkflowState interface that can be used in any workflow definition, if more advanced implementation is not needed.Fields in io.nflow.engine.workflow.curated declared as WorkflowState Modifier and Type Field Description static WorkflowStateCronWorkflow. DISABLEDstatic WorkflowStateCronWorkflow. DO_WORKstatic WorkflowStateBulkWorkflow. DONEstatic WorkflowStateBulkWorkflow. ERRORstatic WorkflowStateCronWorkflow. FAILEDstatic WorkflowStateCronWorkflow. HANDLE_FAILUREstatic WorkflowStateCronWorkflow. SCHEDULEStates of cron workflow.static WorkflowStateBulkWorkflow. SPLIT_WORKBulk workflow states.static WorkflowStateBulkWorkflow. WAIT_FOR_CHILDREN_TO_FINISHstatic WorkflowStateCronWorkflow. WAIT_FOR_WORK_TO_FINISH -
Uses of WorkflowState in io.nflow.engine.workflow.definition
Fields in io.nflow.engine.workflow.definition with type parameters of type WorkflowState Modifier and Type Field Description protected Map<String,WorkflowState>WorkflowDefinition. failureTransitionsMap<WorkflowState,Integer>WorkflowSettings. maxSubsequentStateExecutionsPerStateMaximum number of subsequent state executions before forcing a short transition delay, per state.Methods in io.nflow.engine.workflow.definition that return WorkflowState Modifier and Type Method Description WorkflowStateWorkflowDefinition. getErrorState()Return the generic error state of the workflow.WorkflowStateWorkflowDefinition. getInitialState()Return the initial state of the workflow.WorkflowStateNextAction. getNextState()Return the next state of the workflow.WorkflowStateWorkflowDefinition. getState(String state)Returns the workflow state for the given state name.Methods in io.nflow.engine.workflow.definition that return types with arguments of type WorkflowState Modifier and Type Method Description Map<String,WorkflowState>WorkflowDefinition. getFailureTransitions()Return transitions from states to failure states.Set<WorkflowState>WorkflowDefinition. getStates()Return all possible states of the workflow.Methods in io.nflow.engine.workflow.definition with parameters of type WorkflowState Modifier and Type Method Description StateProcessExceptionHandlingWorkflowSettings. analyzeExeption(WorkflowState state, Throwable thrown)Analyze exception thrown by a state method to determine how it should be handled.intWorkflowSettings. getMaxSubsequentStateExecutions(WorkflowState state)Return the maximum number of subsequent state executions before forcing a short transition delay.WorkflowStateMethodWorkflowDefinition. getMethod(WorkflowState state)Returns the workflow state method for the given state.static NextActionNextAction. moveToState(WorkflowState nextState, String reason)Schedule processing of statenextStateimmediately.static NextActionNextAction. moveToStateAfter(WorkflowState nextState, org.joda.time.DateTime activation, String reason)Schedule processing of statenextStateat timeactivation.protected WorkflowDefinitionWorkflowDefinition. permit(WorkflowState originState, WorkflowState targetState)Register a state transition to the allowed transitions.protected WorkflowDefinitionWorkflowDefinition. permit(WorkflowState originState, WorkflowState targetState, WorkflowState failureState)Register a state and failure state transitions to the allowed transitions.voidWorkflowDefinition. registerState(WorkflowState state)Register a state as one of the allowed states in this workflow.WorkflowSettings.BuilderWorkflowSettings.Builder. setMaxSubsequentStateExecutions(WorkflowState state, int maxSubsequentStateExecutions)Set maximum number of subsequent state executions before forcing a short transition delay for given state.static NextActionNextAction. stopInState(WorkflowState finalState, String reason)Set next state tofinalStateand do not schedule its processing.Method parameters in io.nflow.engine.workflow.definition with type arguments of type WorkflowState Modifier and Type Method Description WorkflowSettings.BuilderWorkflowSettings.Builder. setExceptionAnalyzer(BiFunction<WorkflowState,Throwable,StateProcessExceptionHandling> exceptionAnalyzer)Set the exception analyzer function.Constructors in io.nflow.engine.workflow.definition with parameters of type WorkflowState Constructor Description WorkflowDefinition(String type, WorkflowState initialState, WorkflowState errorState)Create a workflow definition with default settings and automatically scanned state methods.WorkflowDefinition(String type, WorkflowState initialState, WorkflowState errorState, WorkflowSettings settings)Create a workflow definition with given settings and automatically scanned state methods.WorkflowDefinition(String type, WorkflowState initialState, WorkflowState errorState, WorkflowSettings settings, Map<String,WorkflowStateMethod> stateMethods)Create a workflow definition with given settings and state methods.WorkflowDefinition(String type, WorkflowState initialState, WorkflowState errorState, WorkflowSettings settings, Map<String,WorkflowStateMethod> stateMethods, Collection<WorkflowState> states)Create a workflow definition with given settings, state methods and states.Constructor parameters in io.nflow.engine.workflow.definition with type arguments of type WorkflowState Constructor Description WorkflowDefinition(String type, WorkflowState initialState, WorkflowState errorState, WorkflowSettings settings, Map<String,WorkflowStateMethod> stateMethods, Collection<WorkflowState> states)Create a workflow definition with given settings, state methods and states. -
Uses of WorkflowState in io.nflow.engine.workflow.instance
Methods in io.nflow.engine.workflow.instance with parameters of type WorkflowState Modifier and Type Method Description WorkflowInstance.BuilderWorkflowInstance.Builder. setState(WorkflowState state)Set the state.
-