Package org.oasisOpen.docs.wsbpel.x20.process.executable

Examples of org.oasisOpen.docs.wsbpel.x20.process.executable.TPartnerLinks


        .getModelProcessor();

    // Generate BPEL Model
    BpelParserModel m = new BpelParserModel();
    m.createModel(pnp.getElementContainer());
    ProcessDocument doc = ProcessDocument.Factory.newInstance();
    TProcess process = doc.addNewProcess();
//    BPEL.genBpelProcess();
//    BPEL.Process.set(m.generate_bpel());
//    setGlobals(BPEL.Process, pnp);
    process.set(m.generate_bpel());
    setGlobals(process,pnp);
    // File Output
    XmlOptions opt = new XmlOptions();

    //opt.setSavePrettyPrintIndent(2);
    //opt.setUseDefaultNamespace();
    Map<String, String> map = new HashMap<String, String>();
    map.put("http://docs.oasis-open.org/wsbpel/2.0/process/executable",
        "bpel");
    map.put("http://www.w3.org/2001/XMLSchema", "xs");
    opt = opt.setSaveSuggestedPrefixes(map);
    opt.setSavePrettyPrint();
    try
    {
      doc.save(new File(Path), opt);
      //bpelDoc.save(new File(Path), opt);
      return true;
    } catch (IOException e)
    {
      return false;
View Full Code Here


    BpelParserModel m = new BpelParserModel();
    if(!m.createModel(pnp.getElementContainer()))
    {
      return "" + Messages.getString("BPEL.genPreview.Error");
    }
    ProcessDocument doc = ProcessDocument.Factory.newInstance();
    TProcess process = doc.addNewProcess();
    setGlobals(process,pnp);
    TProcess tempProc = m.generate_bpel();
    if (tempProc != null)
    {
      setGlobals(tempProc, pnp);
      process.set(tempProc);
    } else
    {
      return "" + Messages.getString("BPEL.genPreview.Error");
    }
    XmlOptions opt = new XmlOptions();
    // opt.setSavePrettyPrintIndent(2);
    // opt.setUseDefaultNamespace();
    Map<String, String> map = new HashMap<String, String>();
    map.put("http://docs.oasis-open.org/wsbpel/2.0/process/executable",
        "bpel");
    map.put("http://www.w3.org/2001/XMLSchema", "xs");
    opt = opt.setSaveSuggestedPrefixes(map);
    opt.setSavePrettyPrint();
    return doc.xmlText(opt);
  }
View Full Code Here

    else if(TIf.class.isInstance(tmp.getBpelCode())){
      TIf iIfSub = iWhile.addNewIf();
      iIfSub.set(tmp.getBpelCode());
    }
    else if(TAssign.class.isInstance(tmp.getBpelCode())){
      TAssign iAss = iWhile.addNewAssign();
      iAss.set(tmp.getBpelCode());     
    }
    else if(TFlow.class.isInstance(tmp.getBpelCode())){
      TFlow iFlow = iWhile.addNewFlow();
      iFlow.set(tmp.getBpelCode());
    }
View Full Code Here

    {
      TIf iIf = iOnAlarmPick.addNewIf();
      iIf.set(tmp.getBpelCode());
    } else if (TAssign.class.isInstance(tmp.getBpelCode()))
    {
      TAssign iAss = iOnAlarmPick.addNewAssign();
      iAss.set(tmp.getBpelCode());
    } else if (TFlow.class.isInstance(tmp.getBpelCode()))
    {
      TFlow iFlowSub = iOnAlarmPick.addNewFlow();
      iFlowSub.set(tmp.getBpelCode());
    } else if (TEmpty.class.isInstance(tmp.getBpelCode()))
View Full Code Here

    {
      TIf iIf = iOnMessage.addNewIf();
      iIf.set(tmp.getBpelCode());
    } else if (TAssign.class.isInstance(tmp.getBpelCode()))
    {
      TAssign iAss = iOnMessage.addNewAssign();
      iAss.set(tmp.getBpelCode());
    } else if (TFlow.class.isInstance(tmp.getBpelCode()))
    {
      TFlow iFlowSub = iOnMessage.addNewFlow();
      iFlowSub.set(tmp.getBpelCode());
    } else if (TEmpty.class.isInstance(tmp.getBpelCode()))
View Full Code Here

        {
          TIf iIfSub = iIf.addNewIf();
          iIfSub.set(tmp.getBpelCode());
        } else if (TAssign.class.isInstance(tmp.getBpelCode()))
        {
          TAssign iAss = iIf.addNewAssign();
          iAss.set(tmp.getBpelCode());
        } else if (TFlow.class.isInstance(tmp.getBpelCode()))
        {
          TFlow iFlow = iIf.addNewFlow();
          iFlow.set(tmp.getBpelCode());
        } else if (TEmpty.class.isInstance(tmp.getBpelCode()))
        {
          TEmpty iEmpty = iIf.addNewEmpty();
          iEmpty.set(tmp.getBpelCode());
        } else if (TWait.class.isInstance(tmp.getBpelCode()))
        {
          TWait iWait = iIf.addNewWait();
          iWait.set(tmp.getBpelCode());
        } else if (TReceive.class.isInstance(tmp.getBpelCode()))
        {
          TReceive iReceive = iIf.addNewReceive();
          iReceive.set(tmp.getBpelCode());
        } else if (TReply.class.isInstance(tmp.getBpelCode()))
        {
          TReply iReply = iIf.addNewReply();
          iReply.set(tmp.getBpelCode());
        } else if (TInvoke.class.isInstance(tmp.getBpelCode()))
        {
          TInvoke iInvoke = iIf.addNewInvoke();
          iInvoke.set(tmp.getBpelCode());
        } else if (TWhile.class.isInstance(tmp.getBpelCode()))
        {
          TWhile iwhile = iIf.addNewWhile();
          iwhile.set(tmp.getBpelCode());
        }
      } else
      {
        TElseif iElseIF = iIf.addNewElseif();
        if (TPick.class.isInstance(tmp.getBpelCode()))
        {
          TPick iPick = iElseIF.addNewPick();
          iPick.set(tmp.getBpelCode());
        } else if (TSequence.class.isInstance(tmp.getBpelCode()))
        {
          TSequence iSeq = iElseIF.addNewSequence();
          iSeq.set(tmp.getBpelCode());
        } else if (TIf.class.isInstance(tmp.getBpelCode()))
        {
          TIf iIfSub = iElseIF.addNewIf();
          iIfSub.set(tmp.getBpelCode());
        } else if (TAssign.class.isInstance(tmp.getBpelCode()))
        {
          TAssign iAss = iElseIF.addNewAssign();
          iAss.set(tmp.getBpelCode());
        } else if (TFlow.class.isInstance(tmp.getBpelCode()))
        {
          TFlow iFlow = iElseIF.addNewFlow();
          iFlow.set(tmp.getBpelCode());
        } else if (TEmpty.class.isInstance(tmp.getBpelCode()))
View Full Code Here

      else if(TIf.class.isInstance(begin.getBpelCode())){
        TIf iIf = iSeq.addNewIf();
        iIf.set(begin.getBpelCode());
      }
      else if(TAssign.class.isInstance(begin.getBpelCode())){
        TAssign iAss = iSeq.addNewAssign();
        iAss.set(begin.getBpelCode());     
      }
      else if(TFlow.class.isInstance(begin.getBpelCode())){
        TFlow iFlowSub = iSeq.addNewFlow();
        iFlowSub.set(begin.getBpelCode());
      }   
      else if(TEmpty.class.isInstance(begin.getBpelCode())){
        TEmpty iEmpty = iSeq.addNewEmpty();
        iEmpty.set(begin.getBpelCode());
      }
      else if(TWait.class.isInstance(begin.getBpelCode())){
        TWait iWait = iSeq.addNewWait();
        iWait.set(begin.getBpelCode());
      }
      else if(TReceive.class.isInstance(begin.getBpelCode())){
        TReceive iReceive = iSeq.addNewReceive();
        iReceive.set(begin.getBpelCode());
      }
      else if(TReply.class.isInstance(begin.getBpelCode())){
        TReply iReply = iSeq.addNewReply();
        iReply.set(begin.getBpelCode());
      }
      else if(TInvoke.class.isInstance(begin.getBpelCode())){
        TInvoke iInvoke = iSeq.addNewInvoke();
        iInvoke.set(begin.getBpelCode());
     
      else if(TWhile.class.isInstance(begin.getBpelCode()))
      {
        TWhile iwhile = iSeq.addNewWhile();
        iwhile.set(begin.getBpelCode());
      }
    }     
   
    //place between transitions
    AbstractElement<?> tmp = begin.get_first_post_element();   
   
   
    //2.transition
    tmp = tmp.get_first_post_element()
   
    //if the 2.transition is a SequenceTransition
    if (SequenceTransition.class.isInstance(tmp)){
      TSequence helpSequence = (TSequence)tmp.getBpelCode();
      XmlCursor cursSeq = iSeq.newCursor();
      XmlCursor cursSub = helpSequence.newCursor();
      cursSeq.toEndToken();
      cursSub.copyXmlContents(cursSeq);
    }
   
    else{
      //transitions case (2.transition)   
      if(TPick.class.isInstance(tmp.getBpelCode())){
        TPick iPick = iSeq.addNewPick();
        iPick.set(tmp.getBpelCode());     
      }
      else if(TIf.class.isInstance(tmp.getBpelCode())){
        TIf iIf = iSeq.addNewIf();
        iIf.set(tmp.getBpelCode());
      }
      else if(TAssign.class.isInstance(tmp.getBpelCode())){
        TAssign iAss = iSeq.addNewAssign();
        iAss.set(tmp.getBpelCode());     
      }
      else if(TFlow.class.isInstance(tmp.getBpelCode())){
        TFlow iFlowSub = iSeq.addNewFlow();
        iFlowSub.set(tmp.getBpelCode());
      }   
View Full Code Here

      else if(TIf.class.isInstance(tmp.getBpelCode())){
        TIf iIf = iFlow.addNewIf();
        iIf.set(tmp.getBpelCode());
      }
      else if(TAssign.class.isInstance(tmp.getBpelCode())){
        TAssign iAss = iFlow.addNewAssign();
        iAss.set(tmp.getBpelCode());
      }
      else if(TFlow.class.isInstance(tmp.getBpelCode())){
        TFlow iFlowSub = iFlow.addNewFlow();
        iFlowSub.set(tmp.getBpelCode());
      }
View Full Code Here

      copy[0].getFrom().setVariable("" + FromVariable);
      copy[0].getTo().setVariable("" + ToVariable);
    }
    else
    {
      TCopy newcopy = this.getActivity().addNewCopy();
      newcopy.addNewFrom().setVariable("" + FromVariable);
      newcopy.addNewTo().setVariable("" + ToVariable);
    }
       
  }
View Full Code Here

          TWhile iwhile = iIf.addNewWhile();
          iwhile.set(tmp.getBpelCode());
        }
      } else
      {
        TElseif iElseIF = iIf.addNewElseif();
        if (TPick.class.isInstance(tmp.getBpelCode()))
        {
          TPick iPick = iElseIF.addNewPick();
          iPick.set(tmp.getBpelCode());
        } else if (TSequence.class.isInstance(tmp.getBpelCode()))
        {
          TSequence iSeq = iElseIF.addNewSequence();
          iSeq.set(tmp.getBpelCode());
        } else if (TIf.class.isInstance(tmp.getBpelCode()))
        {
          TIf iIfSub = iElseIF.addNewIf();
          iIfSub.set(tmp.getBpelCode());
        } else if (TAssign.class.isInstance(tmp.getBpelCode()))
        {
          TAssign iAss = iElseIF.addNewAssign();
          iAss.set(tmp.getBpelCode());
        } else if (TFlow.class.isInstance(tmp.getBpelCode()))
        {
          TFlow iFlow = iElseIF.addNewFlow();
          iFlow.set(tmp.getBpelCode());
        } else if (TEmpty.class.isInstance(tmp.getBpelCode()))
        {
          TEmpty iEmpty = iElseIF.addNewEmpty();
          iEmpty.set(tmp.getBpelCode());
        } else if (TWait.class.isInstance(tmp.getBpelCode()))
        {
          TWait iWait = iElseIF.addNewWait();
          iWait.set(tmp.getBpelCode());
        } else if (TReceive.class.isInstance(tmp.getBpelCode()))
        {
          TReceive iReceive = iElseIF.addNewReceive();
          iReceive.set(tmp.getBpelCode());
        } else if (TReply.class.isInstance(tmp.getBpelCode()))
        {
          TReply iReply = iElseIF.addNewReply();
          iReply.set(tmp.getBpelCode());
        } else if (TInvoke.class.isInstance(tmp.getBpelCode()))
        {
          TInvoke iInvoke = iElseIF.addNewInvoke();
          iInvoke.set(tmp.getBpelCode());
        } else if (TWhile.class.isInstance(tmp.getBpelCode()))
        {
          TWhile iwhile = iIf.addNewWhile();
          iwhile.set(tmp.getBpelCode());
View Full Code Here

TOP

Related Classes of org.oasisOpen.docs.wsbpel.x20.process.executable.TPartnerLinks

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.