Examples of WfActivity


Examples of de.danet.an.workflow.omgcore.WfActivity

      ProcessMgr pmgr = procDefDir.processMgr
    ("chabacc", "chabacc_test_receiver");
      WfProcess process
    = pmgr.createProcess(new DefaultRequester (workflowService));
      chan = workflowService.getChannel(process, "test_channel");
      WfActivity recAct = null;
      for (Iterator i = process.steps().iterator(); i.hasNext();) {
    recAct = (WfActivity)i.next ();
    if (recAct.name().equals("Receive")) {
        break;
    }
      }
      assertTrue (recAct != null);
      process.start();
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfActivity

        // start all runnableActivities
        Collection activitiesToStart = transitionManager()
      .startableActivities();
        Iterator it = activitiesToStart.iterator();
        while (it.hasNext()) {
      WfActivity a = (WfActivity)it.next();
      try {
          // Due to concurrency, an activity
          // could be started interim.
          if (!a.workflowState()
        .equals(State.CLOSED)
        && a.state()
        .equals("open.not_running.not_runnable")) {
        a.setProcessContext(null);
          }
      } catch (UpdateNotAllowedException ue) {
          ue.printStackTrace();
      }
        }
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfActivity

  assertTrue(process.state().startsWith("open.running"));
  // get the activities
  Collection c = process.steps();
  Iterator it = c.iterator();
  while (it.hasNext()) {
      WfActivity a = (WfActivity)it.next();
      assertTrue(a.state() != null);
  }
    }
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfActivity

  assertTrue(process.state().startsWith("open.running"));
  // get the activities
  Collection c = process.steps();
  Iterator it = c.iterator();
  while (it.hasNext()) {
      WfActivity a = (WfActivity)it.next();
      assertTrue(a.state() != null);
  }
    }
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfActivity

  // get the activities
  Collection c = process.steps();
  Iterator it = c.iterator();
  int cnt = 0;
  while (it.hasNext()) {
      WfActivity a = (WfActivity)it.next();
      if (a.state().startsWith
    (WfExecutionObject.ClosedState.COMPLETED.toString())) {
    cnt += 1;
      }
  }
  assertTrue (cnt == 5);
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfActivity

  int i = 9;
  int resCnt = 0;
  while (i-- > 0) {
      boolean resd = false;
      for (Iterator it = process.steps().iterator(); it.hasNext();) {
    WfActivity a = (WfActivity)it.next();
    if (a.state().startsWith ("open.not_running.suspended")) {
        a.resume ();
        resd = true;
        resCnt += 1;
        Thread.sleep (500);
    }
      }
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfActivity

  boolean found = false;
  WfResource resource = ras.resourceByKey(key);
  Collection assignedActivities = ras.workItems(resource);
  for (Iterator i = assignedActivities.iterator(); i.hasNext();) {
      WfAssignment assignment = (WfAssignment)i.next();
      WfActivity act = assignment.activity();
      if (testProc.key().equals(act.container().key())) {
    found = true;
    assertTrue(assignment.assignee().resourceName()
         .equals(name));
    break;
      }
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfActivity

  assertTrue(process.state().startsWith("open.running"));
  // get the activities
  Collection c = process.steps();
  Iterator it = c.iterator();
  while (it.hasNext()) {
      WfActivity a = (WfActivity)it.next();
      assertTrue(a.state() != null);
  }
    }
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfActivity

  assertTrue(process.state().startsWith("open.running"));
  // get the activities
  Collection c = process.steps();
  Iterator it = c.iterator();
  while (it.hasNext()) {
      WfActivity a = (WfActivity)it.next();
      assertTrue(a.state() != null);
  }
    }
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfActivity

  // get the activities
  Collection c = process.steps();
  Iterator it = c.iterator();
  int cnt = 0;
  while (it.hasNext()) {
      WfActivity a = (WfActivity)it.next();
      if (a.state().startsWith
    (WfExecutionObject.ClosedState.COMPLETED.toString())) {
    cnt += 1;
      }
  }
  assertTrue (cnt == 5);
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.