Package de.danet.an.workflow.omgcore

Examples of de.danet.an.workflow.omgcore.WfActivity.state()


            boolean found = false;
            for (Iterator i = process.steps().iterator(); i.hasNext();) {
                WfActivity act = (WfActivity)i.next ();
                if (act.name().equals("Generic")) {
                    found = true;
                    assertTrue (act.state().startsWith("open.not_running.not_started"));
                }
            }
            assertTrue (found);
            found = false;
            for (Iterator i = process.steps().iterator(); i.hasNext();) {
View Full Code Here


            found = false;
            for (Iterator i = process.steps().iterator(); i.hasNext();) {
                WfActivity act = (WfActivity)i.next ();
                if (act.name().equals("Normal")) {
                    found = true;
                    assertTrue (act.state().startsWith("closed.completed"));
                }
            }
            assertTrue (found);
            procDir.removeProcess(process);
        } finally {
View Full Code Here

    a = (WfActivity)it.next();
    if (a.name().equals ("A2" + i)) {
        break;
    }
      }
      assertTrue(a.state() != null);
      boolean exceptionCaught = false;
      assertTrue
    (a.name() + " not open.not_running.suspended: " + a.state(),
     a.state().startsWith("open.not_running.suspended"));
      a.resume();
View Full Code Here

    }
      }
      assertTrue(a.state() != null);
      boolean exceptionCaught = false;
      assertTrue
    (a.name() + " not open.not_running.suspended: " + a.state(),
     a.state().startsWith("open.not_running.suspended"));
      a.resume();
      Thread.sleep (1000);
      a.resume();
      Thread.sleep (1000);
View Full Code Here

      }
      assertTrue(a.state() != null);
      boolean exceptionCaught = false;
      assertTrue
    (a.name() + " not open.not_running.suspended: " + a.state(),
     a.state().startsWith("open.not_running.suspended"));
      a.resume();
      Thread.sleep (1000);
      a.resume();
      Thread.sleep (1000);
      assertTrue(a.name() + " not closed.completed: " + a.state(),
View Full Code Here

     a.state().startsWith("open.not_running.suspended"));
      a.resume();
      Thread.sleep (1000);
      a.resume();
      Thread.sleep (1000);
      assertTrue(a.name() + " not closed.completed: " + a.state(),
           a.state().startsWith("closed.completed"));
  }
  assertTrue(process.state().startsWith("closed.completed"));
    }
View Full Code Here

      a.resume();
      Thread.sleep (1000);
      a.resume();
      Thread.sleep (1000);
      assertTrue(a.name() + " not closed.completed: " + a.state(),
           a.state().startsWith("closed.completed"));
  }
  assertTrue(process.state().startsWith("closed.completed"));
    }

    /**
 
View Full Code Here

  assertTrue(a41.state().startsWith("open.not_running.suspended"));
  a41.resume();
  Thread.sleep (1000);
  assertTrue(a42.state().startsWith("open.not_running.suspended"));
  assertTrue(a43.state().startsWith("open.not_running.not_started"));
  assertTrue(a44.state().startsWith("open.not_running.not_started"));
  // start A42
  a42.resume();
  Thread.sleep (1000);
  assertTrue(a43.state().startsWith("open.not_running.not_started"));
  assertTrue(a44.state().startsWith("open.not_running.suspended"));
View Full Code Here

  assertTrue(a44.state().startsWith("open.not_running.not_started"));
  // start A42
  a42.resume();
  Thread.sleep (1000);
  assertTrue(a43.state().startsWith("open.not_running.not_started"));
  assertTrue(a44.state().startsWith("open.not_running.suspended"));
  // start A44
  a44.resume();
  Thread.sleep (1000);
  // process terminated
  assertTrue(process.state().startsWith("closed.completed"));
View Full Code Here

                 String state)
  throws Exception {
  Iterator it = proc.steps().iterator();
  while (it.hasNext()) {
      WfActivity a = (WfActivity)it.next();
      if (!a.state().startsWith(state)) {
    return false;
      }
  }
  return true;
    }
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.