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

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


      }
      // else if (ResourceTriggerTransition.class.isInstance(tmp)
      // || MessageTriggerTransition.class.isInstance(tmp))
      else
      {
        TOnMessage iOnMessage = iPick.addNewOnMessage();
        // transition case (1.transition)
        if (tmp.count_post_objects() != 0)
        {
          tmp = tmp.get_first_post_element();
          tmp = tmp.get_first_post_element();
View Full Code Here


  /**
   *
   * @return
   */
  public TPartnerLinks getBpelCode() {
    TPartnerLinks list = this.genPartnerLinks();
    Iterator<Partnerlink> iter = this._list.iterator();
    while (iter.hasNext()) {
      list.addNewPartnerLink().set(iter.next().getTPartnerlink());
    }
    return list;
  }
View Full Code Here

  public void setGlobals(TProcess iProcess, PetriNetModelProcessor pnp)
  {
    TVariables itempVars = (TVariables) pnp.getElementContainer()
        .getTVariablesList();
    TPartnerLinks itempLinks = (TPartnerLinks) pnp.getElementContainer()
        .getTPartnerLinkList();
    if ((itempVars.sizeOfVariableArray() > 0) & (itempVars != null))
    {
      TVariables iVars = iProcess.addNewVariables();
      for (int i = 0; itempVars.sizeOfVariableArray() > i; i++)
      {
        iVars.addNewVariable().set(itempVars.getVariableArray(i));
        XmlCursor curs = iVars.getVariableArray(i).newCursor();
        curs.toNextToken();
        curs.toNextToken();
        curs.toNextToken();
        if (curs.isNamespace())
        {
          curs.removeXml();
        }
      }
    }
    if ((itempLinks.sizeOfPartnerLinkArray() > 0) & (itempLinks != null))
    {
      TPartnerLinks iLinks = iProcess.addNewPartnerLinks();
      for (int j = 0; itempLinks.sizeOfPartnerLinkArray() > j; j++)
      {
        iLinks.addNewPartnerLink().set(
            (TPartnerLink) itempLinks.getPartnerLinkArray(j));
        XmlCursor curs = iLinks.getPartnerLinkArray(j).newCursor();
        curs.toNextToken();
        curs.toNextToken();
        curs.toNextToken();
        curs.toNextToken();
        curs.toNextToken();
View Full Code Here

    if (this.getData() != null)
      return this.getData();
    TWhile iWhile = TWhile.Factory.newInstance();
    AbstractElement<?> tmp = this.begin.get_first_post_element().get_first_post_element();
    if(TPick.class.isInstance(tmp.getBpelCode())){
      TPick iPick = iWhile.addNewPick();
      iPick.set(tmp.getBpelCode());     
    }
    else if(TSequence.class.isInstance(tmp.getBpelCode())){
      TSequence iSeq = iWhile.addNewSequence();
      iSeq.set(tmp.getBpelCode());
    }
View Full Code Here

   
    else{
      iSeq = TSequence.Factory.newInstance();
      //transitions case (1.transition)   
      if(TPick.class.isInstance(begin.getBpelCode())){
        TPick iPick = iSeq.addNewPick();
        iPick.set(begin.getBpelCode());     
      }
      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());
      }
View Full Code Here

  public TPick getBpelCode()
  {
    if (this.getData() != null)
      return this.getData();
    TPick iPick = TPick.Factory.newInstance();
    AbstractElement<?> tmp;
    Iterator<AbstractElement<?>> list = begin.iterator();

    while (list.hasNext())
    {
      tmp = list.next();

      // 1.element
      if (TimeTriggerTransition.class.isInstance(tmp))
      {
        TOnAlarmPick iOnAlarmPick = iPick.addNewOnAlarm();
        // transition case (1.transition)
        if (tmp.count_post_objects() != 0)
        {
          tmp = tmp.get_first_post_element();
          tmp = tmp.get_first_post_element();
          this.addToOnAlarm(iOnAlarmPick, tmp);
        } else
        {
          this.addToOnAlarm(iOnAlarmPick, tmp);
        }
        // triggerTransition = iOnAlarmPick;
      }
      // else if (ResourceTriggerTransition.class.isInstance(tmp)
      // || MessageTriggerTransition.class.isInstance(tmp))
      else
      {
        TOnMessage iOnMessage = iPick.addNewOnMessage();
        // transition case (1.transition)
        if (tmp.count_post_objects() != 0)
        {
          tmp = tmp.get_first_post_element();
          tmp = tmp.get_first_post_element();
View Full Code Here

  private void addToOnAlarm(TOnAlarmPick iOnAlarmPick, AbstractElement<?> tmp)
  {
    if (TPick.class.isInstance(tmp.getBpelCode()))
    {
      TPick iPickSub = iOnAlarmPick.addNewPick();
      iPickSub.set(tmp.getBpelCode());
    } else if (TSequence.class.isInstance(tmp.getBpelCode()))
    {
      TSequence iSeq = iOnAlarmPick.addNewSequence();
      iSeq.set(tmp.getBpelCode());
    } else if (TIf.class.isInstance(tmp.getBpelCode()))
View Full Code Here

  private void addToOnMessage(TOnMessage iOnMessage, AbstractElement<?> tmp)
  {
    if (TPick.class.isInstance(tmp.getBpelCode()))
    {
      TPick iPickSub = iOnMessage.addNewPick();
      iPickSub.set(tmp.getBpelCode());
    } else if (TSequence.class.isInstance(tmp.getBpelCode()))
    {
      TSequence iSeq = iOnMessage.addNewSequence();
      iSeq.set(tmp.getBpelCode());
    } else if (TIf.class.isInstance(tmp.getBpelCode()))
View Full Code Here

      if (i == 0)
      {
        if (TPick.class.isInstance(tmp.getBpelCode()))
        {
          TPick iPick = iIf.addNewPick();
          iPick.set(tmp.getBpelCode());
        } else if (TSequence.class.isInstance(tmp.getBpelCode()))
        {
          TSequence iSeq = iIf.addNewSequence();
          iSeq.set(tmp.getBpelCode());
        } else if (TIf.class.isInstance(tmp.getBpelCode()))
        {
          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()))
View Full Code Here

      tmp = list.next();
      tmp=tmp.get_first_post_element();

      if(TPick.class.isInstance(tmp.getBpelCode())){
        TPick iPick = iFlow.addNewPick();
        iPick.set(tmp.getBpelCode());
      }
      else if(TSequence.class.isInstance(tmp.getBpelCode())){
        TSequence iSeq = iFlow.addNewSequence();
        iSeq.set(tmp.getBpelCode());
      }
View Full Code Here

TOP

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

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.