Package de.danet.an.workflow.api

Examples of de.danet.an.workflow.api.ProcessMgr.processes()


  // Remove all old processes
  ProcessDefinitionDirectory procDefDir
      = workflowService().processDefinitionDirectory ();
  ProcessDirectory procDir = workflowService().processDirectory ();
  ProcessMgr pmgr = procDefDir.processMgr("ut-process", "dataItemLookup");
  Collection oldProcs = pmgr.processes();
  for (Iterator i = oldProcs.iterator(); i.hasNext ();) {
      procDir.removeProcess ((Process)i.next());
  }

  // Create some processes, first with null data item
View Full Code Here


  assertTrue (c.size () == 1);
  c = toKeys (c);
  assertTrue (c.contains(procLong.key ()));

  // Cleanup
  oldProcs = pmgr.processes();
  for (Iterator i = oldProcs.iterator(); i.hasNext ();) {
      procDir.removeProcess ((Process)i.next());
  }
    }
View Full Code Here

  boolean gotException = false;
  // test default setting
  assertTrue(defDir.isEnabled("SystemTest_minimal", "minimal"));
  defDir.setEnabled("SystemTest_minimal", "minimal", false);
  ProcessMgr mgr = defDir.processMgr("SystemTest_minimal", "minimal");
  int noprocs = mgr.processes().size();
  //WfProcess proc = null;
  WrappedProcess proc = null;
  // Make sure that default is "disabled"
  assertTrue(mgr.processMgrState() == WfProcessMgr.DISABLED);
  // Test that process creation is not possible
View Full Code Here

      gotException = true;
  }
  assertTrue(gotException);
  // Enable now and make sure that process can be created
  mgr.setProcessMgrState(WfProcessMgr.ENABLED);
  assertTrue(mgr.processes().size() == noprocs);
  proc = new WrappedProcess(mgr.createProcess(requester));
  createdProcs.add (proc);
  assertTrue(mgr.processes().size() == noprocs+1);
    }
View Full Code Here

  // Enable now and make sure that process can be created
  mgr.setProcessMgrState(WfProcessMgr.ENABLED);
  assertTrue(mgr.processes().size() == noprocs);
  proc = new WrappedProcess(mgr.createProcess(requester));
  createdProcs.add (proc);
  assertTrue(mgr.processes().size() == noprocs+1);
    }

    /**
     * Test creation of a process with minimal process definition.
     * @exception Exception if an error occurs
View Full Code Here

      gotException = true;
  }
  assertTrue(gotException);   
  // Try correct identifier
  ProcessMgr mgr = defDir.processMgr("SystemTest_minimal", "minimal");
  int noprocs = mgr.processes().size();
  //WfProcess proc = mgr.createProcess(requester);
  WrappedProcess proc = new WrappedProcess(mgr.createProcess(requester));
  assertTrue(mgr.processes().size() == noprocs+1);
  createdProcs.add (proc);
    }
View Full Code Here

  // Try correct identifier
  ProcessMgr mgr = defDir.processMgr("SystemTest_minimal", "minimal");
  int noprocs = mgr.processes().size();
  //WfProcess proc = mgr.createProcess(requester);
  WrappedProcess proc = new WrappedProcess(mgr.createProcess(requester));
  assertTrue(mgr.processes().size() == noprocs+1);
  createdProcs.add (proc);
    }

    /**
     * Test removal of all previously created processes.
View Full Code Here

  boolean gotException = false;
  // test default setting
  assertTrue(defDir.isEnabled("SystemTest_minimal", "minimal"));
  defDir.setEnabled("SystemTest_minimal", "minimal", false);
  ProcessMgr mgr = defDir.processMgr("SystemTest_minimal", "minimal");
  int noprocs = mgr.processes().size();
  //WfProcess proc = null;
  WrappedProcess proc = null;
  Util.sleep(15000);
  // Make sure that default is "disabled"
  assertTrue(mgr.processMgrState() == WfProcessMgr.DISABLED);
View Full Code Here

  }
  assertTrue(gotException);
  // Enable now and make sure that process can be created
  mgr.setProcessMgrState(WfProcessMgr.ENABLED);
  Util.sleep(15000);
  assertTrue(mgr.processes().size() == noprocs);
  proc = new WrappedProcess(mgr.createProcess(requester));
  createdProcs.add (proc);
  assertTrue(mgr.processes().size() == noprocs+1);
  Util.logExit("testEnabled");
    }
View Full Code Here

  mgr.setProcessMgrState(WfProcessMgr.ENABLED);
  Util.sleep(15000);
  assertTrue(mgr.processes().size() == noprocs);
  proc = new WrappedProcess(mgr.createProcess(requester));
  createdProcs.add (proc);
  assertTrue(mgr.processes().size() == noprocs+1);
  Util.logExit("testEnabled");
    }

    /**
     * Test creation of a process with minimal process definition.
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.