Package org.springframework.webflow.engine.model.builder

Examples of org.springframework.webflow.engine.model.builder.FlowModelBuilderException


    } else if (DomUtils.nodeNameEquals(element, "render")) {
      return parseRender(element);
    } else if (DomUtils.nodeNameEquals(element, "set")) {
      return parseSet(element);
    } else {
      throw new FlowModelBuilderException("Unknown action element encountered '" + element.getLocalName() + "'");
    }
  }
View Full Code Here


    } else if (DomUtils.nodeNameEquals(element, "subflow-state")) {
      return parseSubflowState(element);
    } else if (DomUtils.nodeNameEquals(element, "end-state")) {
      return parseEndState(element);
    } else {
      throw new FlowModelBuilderException("Unknown state element encountered '" + element.getLocalName() + "'");
    }
  }
View Full Code Here

      for (String parentFlowId : parents) {
        if (StringUtils.hasText(parentFlowId)) {
          try {
            flowModel.merge(modelLocator.getFlowModel(parentFlowId));
          } catch (NoSuchFlowModelException e) {
            throw new FlowModelBuilderException("Unable to find flow '" + parentFlowId
                + "' to inherit from", e);
          }
        }
      }
    }
View Full Code Here

        String flowId;
        String stateId;
        AbstractStateModel parentState = null;
        int hashIndex = parent.indexOf("#");
        if (hashIndex == -1) {
          throw new FlowModelBuilderException("Invalid parent syntax '" + parent
              + "', should take form 'flowId#stateId'");
        }
        flowId = parent.substring(0, hashIndex).trim();
        stateId = parent.substring(hashIndex + 1).trim();
        try {
          if (StringUtils.hasText(flowId)) {
            parentState = modelLocator.getFlowModel(flowId).getStateById(stateId);
          } else {
            parentState = flowModel.getStateById(stateId);
          }
          if (parentState == null) {
            throw new FlowModelBuilderException("Unable to find state '" + stateId + "' in flow '" + flowId
                + "'");
          }
          childState.merge(parentState);
        } catch (NoSuchFlowModelException e) {
          throw new FlowModelBuilderException("Unable to find flow '" + flowId + "' to inherit from", e);
        } catch (ClassCastException e) {
          throw new FlowModelBuilderException("Parent state type '" + parentState.getClass().getName()
              + "' cannot be merged with state type '" + childState.getClass().getName() + "'", e);

        }
      }
    }
View Full Code Here

TOP

Related Classes of org.springframework.webflow.engine.model.builder.FlowModelBuilderException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.