Package org.uengine.kernel

Examples of org.uengine.kernel.SwitchActivity.addChildActivity()


      ProcessDefinition sampleProcDef = new ProcessDefinition();
      sampleProcDef = (ProcessDefinition) GlobalContext.deserialize(new FileInputStream(args[0]), ProcessDefinition.class);
      ActivityDesigner actDesigner = sampleProcDef.createDesigner();
     
      SwitchActivity switchAct = new SwitchActivity();
      switchAct.addChildActivity(new HumanActivity());
      switchAct.addChildActivity(new HumanActivity());
     
      JPanel panel = new JPanel(new BorderLayout());
      Component switchDesigner = switchAct.createDesigner().getComponent();
      panel.add("Center", switchDesigner);
View Full Code Here


      sampleProcDef = (ProcessDefinition) GlobalContext.deserialize(new FileInputStream(args[0]), ProcessDefinition.class);
      ActivityDesigner actDesigner = sampleProcDef.createDesigner();
     
      SwitchActivity switchAct = new SwitchActivity();
      switchAct.addChildActivity(new HumanActivity());
      switchAct.addChildActivity(new HumanActivity());
     
      JPanel panel = new JPanel(new BorderLayout());
      Component switchDesigner = switchAct.createDesigner().getComponent();
      panel.add("Center", switchDesigner);
      panel.setPreferredSize(new Dimension(300,200));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.