Examples of steps()


Examples of common.WrappedProcess.steps()

  assertTrue(act.container().key().equals(proc1.key()));
  assertTrue(act.nextActivities().size() == 0);

  // Test activities of processes 2 and 3
  assertTrue(proc2.steps().size() == 3);
  assertTrue(proc3.steps().size() == 3);
  Iterator it = proc2.steps().iterator();
  List acts = new LinkedList();
  while (it.hasNext()) {
      act = (WrappedActivity)it.next();
      acts.clear();
View Full Code Here

Examples of common.WrappedProcess.steps()

    assertTrue(act.nextActivities().size() == 0);
      } else {
    assertTrue("Invalid activity " + act.name(), false);
      }
  }
  it = proc3.steps().iterator();
  Set step3Keys = new HashSet();
  while (it.hasNext()) {
      step3Keys.add(((WrappedActivity) it.next()).key());
  }
  it = proc3.activitiesInState("open.not_running.not_started")
View Full Code Here

Examples of common.WrappedProcess.steps()

  assertTrue(step3Keys.equals(state3NSKeys));
  assertTrue(step3Keys.equals(state3NRKeys));
  assertTrue(!step3Keys.equals(state2Keys));
  assertTrue(proc3.activitiesInState("open.not_running.suspended")
       .size() == 0);
  assertTrue(proc3.steps().size()
       == proc3.activitiesInState("open").size());
  assertTrue(proc3.activitiesInState("closed").size() == 0);
 
  assertTrue(proc1.workflowState() == WfExecutionObject.State.OPEN);
  assertTrue(proc2.workflowState() == WfExecutionObject.State.OPEN);
View Full Code Here

Examples of common.WrappedProcess.steps()

  ProcessMgr mgr = defDir.processMgr("SystemTest", "block_2_in_2_out");
  //WfProcess proc = mgr.createProcess(requester);
  WrappedProcess proc = new WrappedProcess(mgr.createProcess(requester));

  // Test activities of process
  assertTrue(proc.steps().size() == 9);
  Iterator it = proc.steps().iterator();
  List acts = new LinkedList();
  while (it.hasNext()) {
      WrappedActivity act = (WrappedActivity)it.next();
      acts.clear();
View Full Code Here

Examples of common.WrappedProcess.steps()

  //WfProcess proc = mgr.createProcess(requester);
  WrappedProcess proc = new WrappedProcess(mgr.createProcess(requester));

  // Test activities of process
  assertTrue(proc.steps().size() == 9);
  Iterator it = proc.steps().iterator();
  List acts = new LinkedList();
  while (it.hasNext()) {
      WrappedActivity act = (WrappedActivity)it.next();
      acts.clear();
      if (act.name().equals("ACT1")) {
View Full Code Here

Examples of common.WrappedProcess.steps()

    public void testActivitiesBlock2() throws Exception {
  ProcessMgr mgr = defDir.processMgr("SystemTest", "block_diamond");
  //  WfProcess proc = mgr.createProcess(requester);
  WrappedProcess proc = new WrappedProcess(mgr.createProcess(requester));
  // Test activities of process
  assertTrue(proc.steps().size() == 15);
  Iterator it = proc.steps().iterator();
  List acts = new LinkedList();
  while (it.hasNext()) {
      WrappedActivity act = (WrappedActivity)it.next();
      acts.clear();
View Full Code Here

Examples of common.WrappedProcess.steps()

  ProcessMgr mgr = defDir.processMgr("SystemTest", "block_diamond");
  //  WfProcess proc = mgr.createProcess(requester);
  WrappedProcess proc = new WrappedProcess(mgr.createProcess(requester));
  // Test activities of process
  assertTrue(proc.steps().size() == 15);
  Iterator it = proc.steps().iterator();
  List acts = new LinkedList();
  while (it.hasNext()) {
      WrappedActivity act = (WrappedActivity)it.next();
      acts.clear();
      if (act.name().equals("S1A1")) {
View Full Code Here

Examples of common.WrappedProcess.steps()

  assertTrue(act.container().key().equals(proc1.key()));
  assertTrue(act.nextActivities().size() == 0);

  // Test activities of processes 2 and 3
  assertTrue(proc2.steps().size() == 3);
  assertTrue(proc3.steps().size() == 3);
  Iterator it = proc2.steps().iterator();
  List acts = new LinkedList();
  while (it.hasNext()) {
      act = (WrappedActivity)it.next();
      acts.clear();
View Full Code Here

Examples of common.WrappedProcess.steps()

    assertTrue(act.nextActivities().size() == 0);
      } else {
    assertTrue("Invalid activity " + act.name(), false);
      }
  }
  it = proc3.steps().iterator();
  Set step3Keys = new HashSet();
  while (it.hasNext()) {
      step3Keys.add(((WrappedActivity) it.next()).key());
  }
  it = proc3.activitiesInState("open.not_running.not_started")
View Full Code Here

Examples of common.WrappedProcess.steps()

  assertTrue(step3Keys.equals(state3NSKeys));
  assertTrue(step3Keys.equals(state3NRKeys));
  assertTrue(!step3Keys.equals(state2Keys));
  assertTrue(proc3.activitiesInState("open.not_running.suspended")
       .size() == 0);
  assertTrue(proc3.steps().size()
       == proc3.activitiesInState("open").size());
  assertTrue(proc3.activitiesInState("closed").size() == 0);
 
  assertTrue(proc1.workflowState() == WfExecutionObject.State.OPEN);
  assertTrue(proc2.workflowState() == WfExecutionObject.State.OPEN);
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.