S - The enumeration of valid workflow states.public abstract class WorkflowDefinition<S extends Enum<S> & WorkflowState> extends AbstractWorkflowDefinition<S>
allowedTransitions, failureTransitions| Modifier | Constructor and Description |
|---|---|
protected |
WorkflowDefinition(String type,
S initialState,
S errorState)
Create a workflow definition.
|
protected |
WorkflowDefinition(String type,
S initialState,
S errorState,
WorkflowSettings settings)
Create a workflow definition with customized workflow settings.
|
| Modifier and Type | Method and Description |
|---|---|
Set<S> |
getStates()
Return all states of the workflow.
|
getAllowedTransitions, getDescription, getErrorState, getFailureTransitions, getInitialState, getMethod, getName, getSettings, getState, getSupportedSignals, getType, isAllowedNextAction, isStartState, permit, permit, setDescription, setNameequals, hashCode, toStringprotected WorkflowDefinition(String type, S initialState, S errorState)
type - The type of the workflow definition.initialState - The initial state of the workflow.errorState - The generic error state of the workflow.protected WorkflowDefinition(String type, S initialState, S errorState, WorkflowSettings settings)
type - The type of the workflow.initialState - The initial state of the workflow.errorState - The generic error state of the workflow.settings - The workflow settings.public Set<S> getStates()
getStates in class AbstractWorkflowDefinition<S extends Enum<S> & WorkflowState>Copyright © 2014–2020 Nitor Creations. All rights reserved.