Package org.uengine.kernel

Examples of org.uengine.kernel.DefaultActivity


   
    return next;
  }
 
  public Activity createBlockActivity(){
    return new DefaultActivity(name);
  }
View Full Code Here


      pv.setName("var1");
      pv.setType(Integer.class);       
      def.setProcessVariables(new ProcessVariable[]{pv});
    }
     
    Activity childActivity = new DefaultActivity("test");     
    def.setAdhoc(true);   
    def.setChildActivities(new Activity[]{childActivity});
   
    return def;
  }
View Full Code Here

    }

    def.setProcessVariables(new ProcessVariable[]{pv1, pv2, pv3, pv4, pv5, pv6, pv7});

     
    Activity childActivity = new DefaultActivity("test");     
    def.setChildActivities(new Activity[]{childActivity});
   
    return def;
  }
View Full Code Here

    }

    def.setProcessVariables(new ProcessVariable[]{pv1, pv2, pv3, pv4, pv5, pv6, pv7});

     
    Activity childActivity = new DefaultActivity("test");     
    def.setChildActivities(new Activity[]{childActivity});
   
    return def;
  }
View Full Code Here

    tf.addActionListener(new ActionListener(){
      public void actionPerformed(ActionEvent ae){
        DefaultActivityDesigner actComp;
        c.addActivity(actComp = new DefaultActivityDesigner());
       
        DefaultActivity act = new DefaultActivity(tf.getText());
        actComp.setActivity(act);
       
        c.validate();
       
       
View Full Code Here

 
  public ProcessDefinition createProcessDefinition(){
    ProcessDefinition def = new ProcessDefinition();{
      ComplexActivity all1 = new AllActivity();{
        SequenceActivity seq11 = new SequenceActivity();{
          DefaultActivity act111 = new DefaultActivity("111");
          seq11.setChildActivities(new Activity[]{act111});
        }   

        AllActivity all12 = new AllActivity();{
          SequenceActivity seq12 = new SequenceActivity();{
            DefaultActivity act111 = new DefaultActivity("1211");
            seq12.setChildActivities(new Activity[]{act111});
          }
          SequenceActivity seq122 = new SequenceActivity();/*{
            DefaultActivity act111 = new DefaultActivity("1212");
            DefaultActivity act112 = new DefaultActivity("1213");
            seq122.setChildActivities(new Activity[]{act111, act112});
          }*/
          all12.setChildActivities(new Activity[]{seq12, seq122});
        }       
       
        all1.setChildActivities(new Activity[]{seq11, all12});
      }
     
      DefaultActivity act2 = new DefaultActivity("2");
     
      def.setChildActivities(new Activity[]{all1, act2});
     
      currActivity = act2;
    }
View Full Code Here

  protected org.apache.bsf.BSFManager createBSFManager() throws Exception{
    instance = ProcessInstance.create(pd, "test instance", null);
         
    org.apache.bsf.BSFManager manager = super.createBSFManager();
    manager.declareBean("instance", instance, ProcessInstance.class);
    manager.declareBean("activity", new DefaultActivity(), Activity.class);
    manager.declareBean("util", new ScriptUtil(), ScriptUtil.class);
         
    return manager;
 
View Full Code Here

TOP

Related Classes of org.uengine.kernel.DefaultActivity

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.