Package de.danet.an.workflow.api.Activity

Examples of de.danet.an.workflow.api.Activity.Implementation


    public Implementation executor() {
   if (getPaExecStat().intValue() <= 0
       || getPaExecStat().intValue() == Integer.MAX_VALUE) {
       return null;
   }
   Implementation impl = getPaActImpl()[getPaExecStat().intValue() - 1];
        if (impl instanceof ProcBasedImpl) {
            ((ProcBasedImpl)impl).setProcessKey(getPaSubflow());
        }
        return impl;
    }
View Full Code Here


    /* Comment copied from Interface. */
    public void suspend () throws CannotSuspendException,
        NotRunningException, AlreadySuspendedException {
  super.suspend ();
  Implementation impl = executor ();
  if (impl != null && (impl instanceof SubFlowImplementation)) {
      Collection subs = performersLocal();
      for (Iterator i = subs.iterator (); i.hasNext();) {
    WfProcessLocal p = (WfProcessLocal)i.next();
    try {
View Full Code Here

                .handleException(toActivityLocal(), exception);
            return;
        }
       
        // resume from normal manual suspend invocation
  Implementation impl = executor ();
  if (impl != null && (impl instanceof SubFlowImplementation)) {
      Collection subs = performersLocal();
      for (Iterator i = subs.iterator (); i.hasNext();) {
    WfProcessLocal p = (WfProcessLocal)i.next();
    try {
View Full Code Here

        updateInterim (ClosedCompletedState.ABANDONED);
        return true;
    }

    private void abandonImpl () {
        Implementation impl = executor();
        if (impl == null || typedState() == DebugState.INVOKING) {
            return;
        }
  if (impl instanceof ToolImplementation) {
      try {
View Full Code Here

        NotRunningException {
  mayCloseCheck (ClosedState.ABORTED);
  try {
      terminateImpl ();
  } catch (ApplicationNotStoppedException e) {
      Implementation impl = executor ();
      if (impl == null || !(impl instanceof SubFlowImplementation)) {
    logger.warn
        (toString() + " has been aborted, but the currently "
         + "running tool could not be stopped: " + e.getMessage());
      } else {
View Full Code Here

     * termination was not possible
     */
    protected void terminateImpl()
  throws ApplicationNotStoppedException {
  try {
      Implementation impl = executor ();
      if (impl == null) {
    return;
      }
      if (impl instanceof ToolImplementation) {
    terminateTool ((ToolImplementation)impl);
View Full Code Here

     * @throws ApplicationNotStoppedException if tool termination was
     * not possible.
     */
    protected void terminateTool()
  throws ApplicationNotStoppedException {
  Implementation impl = executor ();
  if (impl == null || !(impl instanceof ToolImplementation)) {
      return;
  }
  terminateTool ((ToolImplementation)impl);
    }
View Full Code Here

TOP

Related Classes of de.danet.an.workflow.api.Activity.Implementation

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.