Class State

java.lang.Object
io.nflow.engine.model.ModelObject
io.nflow.engine.workflow.curated.State
All Implemented Interfaces:
WorkflowState

public class State extends ModelObject implements WorkflowState
A simple implementation of the WorkflowState interface that can be used in any workflow definition, if more advanced implementation is not needed.
  • Constructor Details

    • State

      public State(String name)
      Creates a workflow state with given name and type normal. The name is also used as the description of the state.
      Parameters:
      name - The name of the state.
    • State

      public State(String name, WorkflowStateType type)
      Creates a workflow state with given name and type. The name is also used as the description of the state.
      Parameters:
      name - The name of the state.
      type - The workflow state type.
    • State

      public State(String name, String description)
      Creates a workflow state with given name and description and type normal.
      Parameters:
      name - The name of the state.
      description - The longer description of the state.
    • State

      public State(String name, WorkflowStateType type, String description)
      Creates a workflow state with given name, description and type.
      Parameters:
      name - The name of the state.
      type - The workflow state type.
      description - The longer description of the state.
  • Method Details