Package de.danet.an.workflow.omgcore

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


     * @exception Exception if an error occurs
     */
    public void timeoutASynchr() throws Exception {
  ProcessMgr mgr = defDir.processMgr("SystemTest", "timeoutASynchr");
  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("TransitionPath");
  assertTrue(path, path.equals("PATH:act1:to1:to2:to3"));
View Full Code Here


     * @exception Exception if an error occurs
     */
    public void timeoutLoop() throws Exception {
  ProcessMgr mgr = defDir.processMgr("SystemTest", "timeoutLoop");
  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("TransitionPath");
  Long incr = (Long)data.get("increment");
View Full Code Here

     * @exception Exception if an error occurs
     */
    public void timeoutSuspend() throws Exception {
  ProcessMgr mgr = defDir.processMgr("SystemTest", "suspendStartMan");
  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("TransitionPath");
  assertTrue(path,
View Full Code Here

       path.equals("PATH:start:t1:t2:end"));
  procDir.removeProcess(proc);

  mgr = defDir.processMgr("SystemTest", "suspendEndMan");
  proc = mgr.createProcess(requester);
  procKey = proc.key();
  proc.start();
  assertTrue(stateReached(proc, "closed.completed"));
  data = proc.processContext();
  path = (String)data.get("TransitionPath");
  assertTrue(path,
View Full Code Here

  // One test case with two variants:
  // 1. activity is suspended: (deadline is triggered after resume)
  mgr = defDir.processMgr("SystemTest", "suspendAbsolute");
  proc = mgr.createProcess(requester);
  procKey = proc.key();
  proc.start();
  Activity act = null;
  Iterator i = proc.steps().iterator();
  while (i.hasNext()) {
      act = (Activity)i.next();
View Full Code Here

  procDir.removeProcess(proc);

  // 2. whole process is suspended: (deadline is triggered before resume
  // but cannot be started until process is resumed)
  proc = mgr.createProcess(requester);
  procKey = proc.key();
  proc.start();
  act = null;
  i = proc.steps().iterator();
  while (i.hasNext()) {
      act = (Activity)i.next();
View Full Code Here

     * @exception Exception if an error occurs
     */
    public void timeoutBlock() throws Exception {
  ProcessMgr mgr = defDir.processMgr("SystemTest", "timeoutBlock");
  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("TransitionPath");
  assertTrue(path,
View Full Code Here

     * @exception Exception if an error occurs
     */
    public void timeoutSubflow() throws Exception {
  ProcessMgr mgr = defDir.processMgr("SystemTest", "timeoutSubflow");
  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("TransitionPath");
  assertTrue(path,
View Full Code Here

     */
    public void testRun() throws Exception {
  List msgList = importProcessDefinition("/process/minimal.xml");
  ProcessMgr mgr = defDir.processMgr("SystemTest", "stopOnStart");
  WfProcess proc = mgr.createProcess(requester);
  String procKey = proc.key();
  proc.start();
  assertTrue(stateReached(proc, "open.running.running",
        "open.not_running.suspended.suspended"));
  Activity act = (Activity)proc.steps().toArray()[0];
  act.resume();
View Full Code Here

  }
  assertTrue(processRemoved);
 
  mgr = defDir.processMgr("SystemTest", "stopOnFinish");
  proc = mgr.createProcess(requester);
  procKey = proc.key();
  proc.start();
  assertTrue(stateReached(proc, "open.running.running",
        "open.not_running.suspended.suspended"));
  act = (Activity)proc.steps().toArray()[0];
  act.resume();
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.