Package org.uengine.processpublisher

Examples of org.uengine.processpublisher.Adapter


    keyedContext.put(MY_ROLE, myRole);
           
    Vector childActivities = srcProc.getChildActivities();
    for(Enumeration enumeration = childActivities.elements(); enumeration.hasMoreElements();){         
      Object item = (Object)enumeration.nextElement();
      Adapter adpt = getAdapter(item.getClass());
      if(adpt==null){
        continue;
      }
     
      Activity convertedAct = (Activity)adpt.convert(item, keyedContext);
      if(convertedAct!=null){
        if(convertedAct instanceof SequenceActivity){
          SequenceActivity seq = (SequenceActivity)convertedAct;
          Vector childActs = seq.getChildActivities();
          for(Iterator iter = childActs.iterator(); iter.hasNext();){
View Full Code Here


 
  protected static Adapter getAdapter(Class activityType){
    if(adapters.containsKey(activityType))
      return (Adapter)adapters.get(activityType);
   
    Adapter adapter = null;
    do
      try{
        String activityTypeName = org.uengine.util.UEngineUtil.getClassNameOnly(activityType);
        adapter = (Adapter)Class.forName("org.uengine.processpublisher.invert.exporter." + activityTypeName + "Adapter").newInstance();
       
View Full Code Here

    tSequence sequence_ = new tSequence();
   
    Vector childActivities = srcAct.getChildActivities();
    for(Enumeration enumeration = childActivities.elements(); enumeration.hasMoreElements();){
      Object item = (Object)enumeration.nextElement();
      Adapter adpt = ProcessDefinitionAdapter.getAdapter(item.getClass());
      if(adpt==null){
        continue;
      }
             
      activity actGrp_ = (activity)adpt.convert(item, null);
      sequence_.addactivity_Group(actGrp_);
    }
   
    activity sequence = new activity();
    sequence.setsequenceAsChoice(sequence_);
View Full Code Here

    destAct.setname_Attribute(new XNCName(BPELSerializer.toSafeName(srcAct.getName().getText(), "UnnamedBlock")));
   
    Vector childActivities = srcAct.getChildActivities();
    for(Enumeration enumeration = childActivities.elements(); enumeration.hasMoreElements();){
      Object item = (Object)enumeration.nextElement();
      Adapter adpt = ProcessDefinitionAdapter.getAdapter(item.getClass());
      if(adpt==null){
        continue;
      }
             
      activity actGrp_ = (activity)adpt.convert(item, keyedContext);
      destAct.addactivity_Group(actGrp_);
    }
       
    activity resultAct = new activity();
    resultAct.setsequenceAsChoice(destAct);
View Full Code Here

TOP

Related Classes of org.uengine.processpublisher.Adapter

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.