* Builds the states of the flow.
* @throws FlowBuilderException an exception occurred building the flow
*/
public void buildStates() throws FlowBuilderException {
if (flowModel.getStates() == null) {
throw new FlowBuilderException("At least one state is required to build a Flow");
}
for (Iterator it = flowModel.getStates().iterator(); it.hasNext();) {
AbstractStateModel state = (AbstractStateModel) it.next();
if (state instanceof ActionStateModel) {
parseAndAddActionState((ActionStateModel) state, getFlow());