Class StatesImpl

    • Constructor Detail

      • StatesImpl

        public StatesImpl()
        Constructor
    • Method Detail

      • addState

        public void addState​(State state)
        Description copied from interface: States
        Add an state to the collection
        Specified by:
        addState in interface States
        Parameters:
        state - to be added
      • createState

        public State createState()
        Description copied from interface: States
        Create an State
        Specified by:
        createState in interface States
        Returns:
        an object implementing State
      • getState

        public State getState​(String name)
        Description copied from interface: States
        Get the state definition with given name
        Specified by:
        getState in interface States
        Parameters:
        name - state name
        Returns:
        wanted state definition
      • getStates

        public State[] getStates()
        Description copied from interface: States
        Get the states defined for this process model
        Specified by:
        getStates in interface States
        Returns:
        states defined for this process model
      • iterateState

        public Iterator<State> iterateState()
        Description copied from interface: States
        Iterate through the State objects
        Specified by:
        iterateState in interface States
        Returns:
        an iterator
      • removeState

        public void removeState​(String strStateName)
                         throws WorkflowException
        Description copied from interface: States
        Remove an state from the collection
        Specified by:
        removeState in interface States
        Parameters:
        strStateName - the name of the state to be removed.
        Throws:
        WorkflowException - when the state cannot be found