Package de.danet.an.workflow.apix

Examples of de.danet.an.workflow.apix.ExtProcess


    data.put (fid, map.get (fid));
      }
      if (logger.isDebugEnabled()) {
    logger.debug("Sending " + CollectionsUtil.toString(data));
      }
      ExtProcess proc
    = (originatorIndex == null
       ? (ExtProcess)activity.container()
       : getOriginator (activity));
            proc.broadcastChannelMessage(channelName, data);
      if (localDelivery) {
    // Loop back message to process for tool-to-tool messages
    proc.deliverChannelMessage (channelName, data);
      }
      if (logger.isDebugEnabled ()) {
    logger.debug (auk + " sent data to "
            + map.get(formalParameter[0].id()));
      }
View Full Code Here


  }
    }

    private ExtProcess getOriginator (Activity act)
  throws CannotExecuteException, RemoteException {
  ExtProcess proc = (ExtProcess)act.container();
  if (originatorIndex.intValue() > 0) {
      for (int i = originatorIndex.intValue(); i > 0; i--) {
    proc = (ExtProcess)proc.requestingProcess();
    if (proc == null) {
        throw new CannotExecuteException
      (act + " does not have " + originatorIndex
       + " requesting anchestors");
    }
      }
  } else {
      List procs = new ArrayList ();
      while (true) {
    procs.add (0, proc);
    proc = (ExtProcess)proc.requestingProcess();
    if (proc == null) {
        break;
    }
      }
      try {
View Full Code Here

  throws CannotExecuteException, RemoteException {
  String channel = (String)map.get(formalParameter[0].id());
  if (logger.isDebugEnabled ()) {
      logger.debug (activity + " wants message from channel " + channel);
  }
  ExtProcess proc
      = (listenerIndex == null
         ? (ExtProcess)activity.container() : getListener (activity));
  Map recvd = proc.lookForMessage (channel);
  if (recvd == null) {
      if (logger.isDebugEnabled ()) {
    logger.debug
        (activity + " waits for message on channel " + channel);
      }
      ((ExtActivity)activity).waitOnChannel(proc.key(), channel);
      return;
  }
  if (logger.isDebugEnabled ()) {
      logger.debug
    (activity + " found message "
View Full Code Here

  }
    }

    private ExtProcess getListener (Activity act)
  throws CannotExecuteException, RemoteException {
  ExtProcess proc = (ExtProcess)act.container();
  if (listenerIndex.intValue() > 0) {
      for (int i = listenerIndex.intValue(); i > 0; i--) {
    proc = (ExtProcess)proc.requestingProcess();
    if (proc == null) {
        throw new CannotExecuteException
      (act + " does not have " + listenerIndex
       + " requesting anchestors");
    }
      }
  } else {
      List procs = new ArrayList ();
      while (true) {
    procs.add (0, proc);
    proc = (ExtProcess)proc.requestingProcess();
    if (proc == null) {
        break;
    }
      }
      try {
View Full Code Here

TOP

Related Classes of de.danet.an.workflow.apix.ExtProcess

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.