Interface States
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
StatesImpl
public interface States extends Serializable
Interface describing a representation of the <states> element of a Process Model.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addState(State state)
Add an state to the collectionState
createState()
Create an StateState
getState(String name)
Get the state definition with given nameState[]
getStates()
Get the states defined for this process modelIterator<State>
iterateState()
Iterate through the State objectsvoid
removeState(String strStateName)
Remove an state from the collection
-
-
-
Method Detail
-
createState
State createState()
Create an State- Returns:
- an object implementing State
-
addState
void addState(State state)
Add an state to the collection- Parameters:
state
- to be added
-
getStates
State[] getStates()
Get the states defined for this process model- Returns:
- states defined for this process model
-
getState
State getState(String name)
Get the state definition with given name- Parameters:
name
- state name- Returns:
- wanted state definition
-
removeState
void removeState(String strStateName) throws WorkflowException
Remove an state from the collection- Parameters:
strStateName
- the name of the state to be removed.- Throws:
WorkflowException
- when the state cannot be found
-
-