Package org.eclipse.bpel.model

Examples of org.eclipse.bpel.model.Flow


        if (result == null) result = caseWSDLElement(pick);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case BPELPackage.FLOW: {
        Flow flow = (Flow)theEObject;
        Object result = caseFlow(flow);
        if (result == null) result = caseActivity(flow);
        if (result == null) result = caseExtensibleElement(flow);
        if (result == null) result = caseExtensibleElement_1(flow);
        if (result == null) result = caseWSDLElement(flow);
View Full Code Here


    Element activityElement = createBPELElement("exit");
    return activityElement;
  }

  protected Element flow2XML(Activity activity) {
    Flow flow = (Flow)activity;
    Element activityElement = createBPELElement("flow");
   
    Links links = ((Flow)activity).getLinks();
    if (links != null) {
      Element linksElement = links2XML(links);
      activityElement.appendChild(linksElement);
    }
     
    CompletionCondition completionCondition = flow.getCompletionCondition();
    if (completionCondition != null) {
      Element completionConditionElement = completionCondition2XML(completionCondition);
      activityElement.appendChild(completionConditionElement);
    }
    List activities = ((Flow)activity).getActivities();
View Full Code Here

  @SuppressWarnings("unchecked")
  <R> Flow createFlow(CtBlock<R> block){
    if (block.getLabel() != null){
      if (block.getLabel().startsWith("flow_")){
        String flowName = block.getLabel().substring(5);
        Flow flow = BPELFactory.eINSTANCE.createFlow();
        flow.setName(flowName);
        Links links = BPELFactory.eINSTANCE.createLinks();
        flow.setLinks(links);
        for(CtStatement stmt : block.getStatements()){
          scan(stmt);
          ASTNodeData stmtData = nodeDataStack.peek();
          if (stmtData.flowActivity != null) {
            flow.getActivities().add(stmtData.flowActivity);
            setFlowActivityLinks(flow,stmtData.flowMethod,stmtData.flowActivity);
          }
        }
        return flow;
      }
View Full Code Here

TOP

Related Classes of org.eclipse.bpel.model.Flow

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.