Examples of WfProcessLocal


Examples of de.danet.an.workflow.localcoreapi.WfProcessLocal

     * activity in a single operation.
     *
     * @return the resulting <code>Activity.Info</code> value
     */
    public Info activityInfo () {
  WfProcessLocal proc = containerLocal();
  return new Info
      (uniqueKey(),
       name(), description (), priority(), lastStateTime(),
       getPaProcessName(), proc.description());
    }
View Full Code Here

Examples of de.danet.an.workflow.localcoreapi.WfProcessLocal

  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 {
        p.suspend ();
    } catch (NotRunningException e) {
        throw new CannotSuspendException (e.getMessage ());
    } catch (AlreadySuspendedException e) {
        // may safely by ignored, make checkstyle happy
        continue;
View Full Code Here

Examples of de.danet.an.workflow.localcoreapi.WfProcessLocal

        // 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 {
        p.resume ();
    } catch (NotRunningException e) {
        throw new CannotResumeException (e.getMessage ());
    } catch (NotSuspendedException e) {
        // may safely by ignored, make checkstyle happy
        continue;
View Full Code Here

Examples of de.danet.an.workflow.localcoreapi.WfProcessLocal

        (toString() + " has been aborted, but the currently "
         + "running tool could not be stopped: " + e.getMessage());
      } else {
    Collection subs = performersLocal();
    for (Iterator i = subs.iterator (); i.hasNext();) {
        WfProcessLocal p = (WfProcessLocal)i.next();
        try {
      try {
          p.suspend ();
      } catch (AlreadySuspendedException as) {
          // the better, make checkstyle happy
          int dummy = 0;
      }
      p.abort ();
        } catch (CannotSuspendException ee) {
      throw new CannotStopException
          ("To be aborted sub-process cannot be suspended: "
           + e.getMessage ());
        } catch (NotRunningException ee) {
View Full Code Here

Examples of de.danet.an.workflow.localcoreapi.WfProcessLocal

    return;
      }
      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 ();
    }
      }     
  } catch (CannotStopException e) {
      throw new ApplicationNotStoppedException (e.getMessage());
  } catch (NotRunningException e) {
View Full Code Here

Examples of de.danet.an.workflow.localcoreapi.WfProcessLocal

        = (ProcessDefinitionDirectoryLocal)
        process.processDefinitionDirectoryLocal ();
    WfRequester req = new SubProcRequester (act, execMode);
    ProcessData pd = new DefaultProcessData
        (parameterMap (process, act, pdd));   
    WfProcessLocal p
                    = pdd.createProcessLocal (packageId(), processId(), req);
    p.setProcessContext(pd);
    p.start ();
    startedProcess = p.key ();
    if (execMode == ASYNCHR) {
        act.complete ();
    }
      } catch (InvalidDataException e) {
    act.terminate ();
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.