Examples of steps()


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

                .processMgr ("ExceptionTests", "suspendMapping");
            WfProcess process
                = pmgr.createProcess(new DefaultRequester (workflowService));
            process.start();
            Activity toolAct = null;
            for (Iterator i = process.steps().iterator(); i.hasNext();) {
                Activity act = (Activity)i.next();
                if (act.name().equals("Get stock quote")) {
                    toolAct = act;
                    break;
                }
View Full Code Here

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

            stateReached(toolAct, "open.not_running.suspended.abandoning");
            toolAct.changeState("open.not_running.suspended.clearing_exception");
            toolAct.resume();
            assertTrue (stateReached (process, "closed.completed"));
            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"));
                }
View Full Code Here

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

                    assertTrue (act.state().startsWith("open.not_running.not_started"));
                }
            }
            assertTrue (found);
            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"));
                }
View Full Code Here

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

  process.start();
  assertTrue(process.state().startsWith("open.running"));
  Thread.sleep (1000);
  // start the activities and stop it.
  for (int i = 1; i <= 4; i++) {
      Collection c = process.steps();
      WfActivity a = null;
      for (Iterator it = c.iterator(); it.hasNext();) {
    a = (WfActivity)it.next();
    if (a.name().equals ("A2" + i)) {
        break;
View Full Code Here

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

  // start the process
  process.start();
  assertTrue(process.state().startsWith("open.running"));
  Thread.sleep (1000);
  // start the activities and stop it.
  Object[] actArray = process.steps().toArray();
  assertTrue(actArray.length == 4);
  Arrays.sort (actArray, new Comparator () {
    public int compare (Object o1, Object o2) {
        return ((WfActivity)o1).toString()
      .compareTo (((WfActivity)o2).toString());
View Full Code Here

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

  // start the process
  process.start();
  assertTrue(process.state().startsWith("open.running"));
  Thread.sleep (1000);
  // start the activities and stop it.
  Object[] actArray = process.steps().toArray();
  assertTrue(actArray.length == 8);
  Arrays.sort (actArray, new Comparator () {
    public int compare (Object o1, Object o2) {
        return ((WfActivity)o1).toString()
      .compareTo (((WfActivity)o2).toString());
View Full Code Here

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

    .processMgr ("simpleApplDirTests", "test1");
      WfProcess process
    = pmgr.createProcess(new DefaultRequester (workflowService));
      process.start();
            WfActivity act = null;
      for (Iterator i = process.steps().iterator(); i.hasNext();) {
          act = (WfActivity)i.next ();
          if (act.name().equals("invokeTool")) {
                    break;
          }
      }
View Full Code Here

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

  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();
      if (act.name().equals("A1")) {
    break;
      }
View Full Code Here

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

  // 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();
      if (act.name().equals("A1")) {
    break;
      }
View Full Code Here

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

  assertTrue(path, path.equals("PATH:start:a1"));
  assertTrue(act.state(),
       stateReached(act, "closed.completed.abandoned"));
  Thread.sleep(10000);
  act = null;
  i = proc.steps().iterator();
  while (i.hasNext()) {
      act = (Activity)i.next();
      if (act.name().equals("TIMEOUT1")) {
    break;
      }
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.