Examples of workflowState()


Examples of common.WrappedProcess.workflowState()

       == proc3.activitiesInState("open").size());
  assertTrue(proc3.activitiesInState("closed").size() == 0);
 
  assertTrue(proc1.workflowState() == WfExecutionObject.State.OPEN);
  assertTrue(proc2.workflowState() == WfExecutionObject.State.OPEN);
  assertTrue(proc3.workflowState() == WfExecutionObject.State.OPEN);

  procDir.removeProcess(proc1.getWfProcess());
  procDir.removeProcess(proc2.getWfProcess());
  procDir.removeProcess(proc3.getWfProcess());
    }
View Full Code Here

Examples of common.WrappedProcess.workflowState()

       == proc3.activitiesInState("open").size());
  assertTrue(proc3.activitiesInState("closed").size() == 0);
 
  assertTrue(proc1.workflowState() == WfExecutionObject.State.OPEN);
  assertTrue(proc2.workflowState() == WfExecutionObject.State.OPEN);
  assertTrue(proc3.workflowState() == WfExecutionObject.State.OPEN);

  procDir.removeProcess(proc1.getWfProcess());
  procDir.removeProcess(proc2.getWfProcess());
  procDir.removeProcess(proc3.getWfProcess());
  Util.logExit("testActivities");
View Full Code Here

Examples of de.danet.an.workflow.localapi.ActivityLocal.workflowState()

      String unstoppable = null;
      try {
    setPaTypedState(RunningState.TERMINATING);
    for (Iterator it = stepsLocal().iterator(); it.hasNext();) {
        ActivityLocal act = (ActivityLocal)it.next();
        if (act.workflowState() == State.OPEN
      && (!act.typedState().isSameOrSubState
          (NotRunningState.NOT_STARTED))) {
      try {
          act.terminate();
      } catch (CannotStopException e) {
View Full Code Here

Examples of de.danet.an.workflow.localcoreapi.WfActivityLocal.workflowState()

      while (it.hasNext()) {
    WfActivityLocal a = (WfActivityLocal)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);
        }   
View Full Code Here

Examples of de.danet.an.workflow.localcoreapi.WfProcessLocal.workflowState()

      }
      if (impl instanceof SubFlowImplementation) {
    Collection subs = performersLocal();
    for (Iterator i = subs.iterator (); i.hasNext();) {
        WfProcessLocal p = (WfProcessLocal)i.next();
        if (p.workflowState() == State.CLOSED) {
      continue;
        }
        p.terminate ();
    }
      }     
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfActivity.workflowState()

        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);
          }
View Full Code Here

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

  Thread.sleep (5000);
  assertTrue("Process state should be closed.completed.normal, is "
       + process.state(),
       process.state().startsWith("closed.completed.normal"));
  assertTrue("Process workflow state should be closed, is "
       + process.workflowState(),
       process.workflowState().equals (State.CLOSED));
    }

    /**
     * Remove a given process from the database.
View Full Code Here

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

  assertTrue("Process state should be closed.completed.normal, is "
       + process.state(),
       process.state().startsWith("closed.completed.normal"));
  assertTrue("Process workflow state should be closed, is "
       + process.workflowState(),
       process.workflowState().equals (State.CLOSED));
    }

    /**
     * Remove a given process from the database.
     */
 
View Full Code Here

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

  Thread.sleep (5000);
  assertTrue("Process state should be closed.completed.normal, is "
       + process.state(),
       process.state().startsWith("closed.completed.normal"));
  assertTrue("Process workflow state should be closed, is "
       + process.workflowState(),
       process.workflowState().equals (State.CLOSED));
    }

    /**
     * Remove a given process from the database.
View Full Code Here

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

  assertTrue("Process state should be closed.completed.normal, is "
       + process.state(),
       process.state().startsWith("closed.completed.normal"));
  assertTrue("Process workflow state should be closed, is "
       + process.workflowState(),
       process.workflowState().equals (State.CLOSED));
    }

    /**
     * Remove a given process from the database.
     */
 
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.