Package org.uengine.kernel

Examples of org.uengine.kernel.LoopActivity


    return graphCopy;
  }
 
  private LoopActivity getLoopActivity(Activity activity)
  {
    LoopActivity loop = null;
   
    while(activity != null)
    {
      if(activity instanceof LoopActivity)
      {
View Full Code Here


    return loop;
  }

  private boolean isLoop(GraphActivity sGraph, GraphActivity tGraph)
  {
    LoopActivity sLoop = getLoopActivity(sGraph.referenceActivity);
    LoopActivity tLoop = getLoopActivity(tGraph.referenceActivity);
    return (sLoop != null && tLoop != null && sGraph.SLPoint.pointY > tGraph.SLPoint.pointY);
  }
View Full Code Here

          }
        }
       
        ViewerOptions viewerOption = new ViewerOptions();
       
        LoopActivity loopActivity = null;
        if (isLoop(sga, tga)) {
          loopActivity = getLoopActivity(activityIncomming);
          String loopLabel = loopActivity.getName().getText();
          sb.append(
              "drawLoopCountForSwimlane(paper, '" + sgaTT
              + "', '" + tgaTT
              + "', '" + options.get(viewerOption.SWIMLANE)
              + "', '" + loopLabel
              + "', " + loopActivity.getLoopingCount(instance)
              + ");\n"
          );
        }
       
        sbTemp.append(
View Full Code Here

         
          act = new SQLActivity();
          act.setName("Database");
          cAct2.addChildActivity(act);
        }
        cAct2 = new LoopActivity();
        cAct1.addChildActivity(cAct2);{
          act = new HumanActivity();
          act.setName("Suggestion");
          ((HumanActivity) act).setRole(role3);
          cAct2.addChildActivity(act);
View Full Code Here

*/
  
public class LoopActivityAdapter implements Adapter{
 
  public Object convert(Object src, java.util.Hashtable keyedContext) throws Exception{
    LoopActivity srcAct = (LoopActivity)src;
   
    tWhile destAct = new tWhile();
    destAct.setname_Attribute(new XNCName(srcAct.getName().getText().replace(' ', '_')));
   
    //review:
    tBoolean_expr booleanExp = new tBoolean_expr();
    booleanExp.set("boolean exp");
    destAct.setcondition_Attribute(booleanExp);
   
    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;
View Full Code Here

TOP

Related Classes of org.uengine.kernel.LoopActivity

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.