Package de.danet.an.workflow.omgcore

Examples of de.danet.an.workflow.omgcore.WfProcess.key()


  }
  assertTrue(processRemoved);

  mgr = defDir.processMgr("SystemTest", "completeNoRemoval");
  proc = mgr.createProcess(requester);
  procKey = proc.key();
  proc.start();
  assertTrue(stateReached(proc, "closed.completed",
        "closed.completed"));
  // Assure that process has to be removed manually
  assertTrue(mgr.processByKey(procKey) != null);
View Full Code Here


  }
  assertTrue(processRemoved);

  mgr = defDir.processMgr("SystemTest", "completeRemoval");
  proc = mgr.createProcess(requester);
  procKey = proc.key();
  proc.start();
  // Assure that process has been removed automatically
  processRemoved = false;
  int maxRetries = 5;
  boolean test = true;
View Full Code Here

     */
    public void loopTest() throws Exception {
  ProcessMgr mgr = defDir.processMgr
      ("deferredChoiceTests", "loopingDeferredChoiceTest");
  WfProcess proc = mgr.createProcess(requester);
  String procKey = proc.key();
  proc.start();
  assertTrue(stateReached(proc, "closed.completed"));
  ProcessData data = proc.processContext();
  String path = (String)data.get("Path");
  assertTrue(path, path.equals("Path:ACT0:ACT1:ACT2:ACT5:ACT1:ACT2:ACT5"
View Full Code Here

     */
    public void terminateProcessTest() throws Exception {
  ProcessMgr mgr = defDir.processMgr
      ("deferredChoiceTests", "terminateTest");
  WfProcess proc = mgr.createProcess(requester);
  String procKey = proc.key();
  proc.start();
  assertTrue(stateReached(proc, "open.running"));
  proc.terminate ();
  assertTrue(stateReached(proc, "closed.terminated"));
  procDir.removeProcess(proc);
View Full Code Here

     */
    public void terminateActivityTest() throws Exception {
  ProcessMgr mgr = defDir.processMgr
      ("deferredChoiceTests", "terminateTest");
  WfProcess proc = mgr.createProcess(requester);
  String procKey = proc.key();
  proc.start();
  Activity act2 = null;
  Activity act3 = null;
  assertTrue(stateReached(proc, "open.running"));
  for (Iterator i = proc.steps().iterator (); i.hasNext ();) {
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.