Package de.danet.an.workflow.omgcore

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


  AlreadySuspendedException {
  if (typedState().isSameOrSubState(NotRunningState.SUSPENDED)) {
      throw new AlreadySuspendedException (toString());
  }
  if (!typedState().isSameOrSubState(OpenState.RUNNING)) {
      throw new NotRunningException (toString() + " is " + state());
  }
  if (!validTypedStates().contains (NotRunningState.SUSPENDED)) {
      throw new CannotSuspendException(toString() + " is " + state());
  }
  updateState (SuspendedState.SUSPENDED);
View Full Code Here


    public void resume ()
        throws CannotResumeException, NotRunningException,
            NotSuspendedException {
  if (!typedState().isSameOrSubState(OpenState.RUNNING)
      && !typedState().isSameOrSubState(SuspendedState.SUSPENDED)) {
      throw new NotRunningException (toString() + " is " + state());
  }
  if (!typedState().isSameOrSubState(NotRunningState.SUSPENDED)) {
      throw new NotSuspendedException (toString());
  }
  if (!validTypedStates().contains (OpenState.RUNNING)) {
View Full Code Here

     * @return result
     * @throws NotRunningException if the activity has not been started yet
     */
    public Date startTime() throws NotRunningException {
        if (getPaStartTime() == null) {
            throw new NotRunningException (state());
        }
        return getPaStartTime();
    }
View Full Code Here

                logger.warn("Attempt to close ignored, " + toString()
                        + " has already been abandoned (probably attempted "
                        + "by tool that could not be terminated).");
                return;
            }
      throw new NotRunningException
    ("Cannot terminate "+toString()+", process already closed.");
  }
  if (!validTypedStates().contains (s)) {
      if (typedState().isSameOrSubState(OpenState.RUNNING)) {
    throw new CannotStopException(toString() + " is " + state());
      } else {
    throw new NotRunningException (toString() + " is " + state());
      }
  }
    }
View Full Code Here

  throws CannotStopException, NotRunningException {
  if (!validTypedStates().contains (s)) {
      if (typedState().isSameOrSubState(OpenState.RUNNING)) {
    throw new CannotStopException(toString() + " is " + state());
      } else {
    throw new NotRunningException (toString() + " is " + state());
      }
  }
    }
View Full Code Here

TOP

Related Classes of de.danet.an.workflow.omgcore.NotRunningException

Copyright © 2018 www.massapicom. 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.