Package de.danet.an.workflow.localapi

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


                logger.error ("Cannot complete " + auk
                        + " (will be terminated): " + e.getMessage ());
            }
            if (act.typedState().workflowState() == State.OPEN) {
                try {
                    act.terminate ();
                } catch (CannotStopException e) {
                    logger.error
                    ("Cannot terminate " + auk + ": " + e.getMessage ());
                } catch (NotRunningException e) {
                    logger.warn (auk + " not running although state is open?");
View Full Code Here


        ActivityLocal act = (ActivityLocal)it.next();
        if (act.workflowState() == State.OPEN
      && (!act.typedState().isSameOrSubState
          (NotRunningState.NOT_STARTED))) {
      try {
          act.terminate();
      } catch (CannotStopException e) {
          unstoppable = act.toString()
        + " cannot be terminated: " + e.getMessage();
      } catch (NotRunningException e) {
          // cannot happen
View Full Code Here

          (NotRunningState.SUSPENDED)) {
          act.abort ();
      } else if (act.typedState().isSameOrSubState
           (OpenState.RUNNING)) {
          try {
        act.terminate();
          } catch (CannotStopException e) {
        act.suspend ();
        act.abort ();
          }
      }
View Full Code Here

      String key = ((SubProcRequester)req).requestingActivity();
      try {
    ActivityLocal act = lookupActivityLocal (key);
    if (act.typedState () != RunningState.ABANDONING
        && act.typedState() != ClosedCompletedState.ABANDONED) {
        act.terminate ();
    }
      } catch (InvalidKeyException e) {
    logger.warn (toString() + " cannot notify requesting activity "
           + key + " : " + e.getMessage ());
      } catch (InvalidControlOperationException e) {
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.