Package de.danet.an.workflow.internalapi

Examples of de.danet.an.workflow.internalapi.ThreadInfo


     * deferred choice, reset all other (competing) activities.
     * @param act the activity
     */
    public void resetCompeting (ExtActivityLocal act)
  throws TransitionNotAllowedException {
  ThreadInfo threadInfo = act.threadInfo ();
  Collection res = new ArrayList ();
  Collection predecessors = (Collection)transByTo.get(act.key());
  if (predecessors.size() == 0) {
      throw new IllegalArgumentException
    (act + " has no predecessors, cannot be preliminarily chosen");
  }
  for (Iterator i = predecessors.iterator(); i.hasNext ();) {
      ExtTransitionLocal trans = (ExtTransitionLocal)i.next();
      ExtActivityLocal fromAct = (ExtActivityLocal)trans.from();
      if (fromAct.deferChoiceOnSplit ()
    && threadInfo.includes (fromAct.key())) {
    for (Iterator j = ((Collection)transByFrom.get(fromAct.key()))
       .iterator(); j.hasNext ();) {
        ExtTransitionLocal ft = (ExtTransitionLocal)j.next();
        res.add (ft.to());
                    ft.setPendingToken(false);
View Full Code Here


    ("Cannot update not started substate, activity is "
     + getPaTypedState().toString());
  }
  setPaTypedState (NotStartedState.STARTABLE);
  if (getPaThreadInfo() == null) {
      setPaThreadInfo (new ThreadInfo (triggers));
  }
  setPaPreliminarilyChosen (preliminarilyChosen);
  if (logger.isDebugEnabled ()) {
      logger.debug (toString () + " triggered by " + getPaThreadInfo ());
  }
View Full Code Here

  throw new UnsupportedOperationException ();
    }

    /* Comment copied from interface. */
    public ThreadInfo threadInfo () {
  return new ThreadInfo (null);
    }
View Full Code Here

TOP

Related Classes of de.danet.an.workflow.internalapi.ThreadInfo

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.