Package de.danet.an.workflow.internalapi

Examples of de.danet.an.workflow.internalapi.ExtActivityLocal.key()


        ExtActivityLocal act = (ExtActivityLocal)entry.getValue ();
        if (! localToIds.contains (actId)) {
            // is entry activity
            act.setJoinMode (joinMode);
            entryActs.add(act);
            actIds.put(act.key(), actId);
        }
        if (! localFromIds.contains (actId)) {
            // is exit activity
            act.setSplitMode (splitMode);
            exitActs.add(act);
View Full Code Here


        }
        if (! localFromIds.contains (actId)) {
            // is exit activity
            act.setSplitMode (splitMode);
            exitActs.add(act);
            actIds.put(act.key(), actId);
        }
    }
      }
  }
    }
View Full Code Here

      logger.debug ("Initializing transition manager for " + process);
  }
  myProcess = process;
  for (Iterator i = process.stepsLocal().iterator (); i.hasNext(); ) {
      ExtActivityLocal a = (ExtActivityLocal)i.next();
      String key = a.key();
      transByTo.put (key, new ArrayList ());
      transByFrom.put (key, new ArrayList ());
  }
  for (Iterator i = process.transitionsLocal().iterator ();
             i.hasNext(); ) {
View Full Code Here

      Collections.sort ((List)transByTo.get(key), transComp);
  }
  for (Iterator i = process.stepsLocal().iterator (); i.hasNext(); ) {
      ExtActivityLocal a = (ExtActivityLocal)i.next();
      State as = a.typedState();
      String ak = a.key();
      if (as.isSameOrSubState(NotRunningState.NOT_STARTED)) {
    if (as.isSameOrSubState (NotStartedState.STARTABLE)) {
        startableActs.put (ak, a);
    } else if (as.isSameOrSubState (NotStartedState.UNKNOWN)
         && (((Collection)transByTo.get(ak)).size () == 0)) {
View Full Code Here

    for (Iterator i = triggers.iterator (); i.hasNext ();) {
        ExtActivityLocal ta = (ExtActivityLocal)i.next ();
        if (! first) {
      s.append (", ");
        }
        s.append (ta.key());
        first = false;
    }
      }
      s.append (", preliminary chosen: " + deferChoiceOnSplit);
      logger.debug (s.toString());
View Full Code Here

  }
  ExtActivityLocal fromAct = (ExtActivityLocal)trans.from();
  String toActKey = toAct.key();
  if (! ((toAct.typedState().isSameOrSubState (ClosedState.COMPLETED)
         && (fromAct.threadInfo().includes (toActKey)
       || fromAct.key().equals (toActKey))))) {
      return false;
  }
  // Now we reset the activities in the loop
  if (logger.isDebugEnabled ()) {
      logger.debug ("Loop detected: " + fromAct + " triggers " + toAct);
View Full Code Here

  }
  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

  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

      logger.debug (s);
  }
        // terminate others
        for (Iterator i = res.iterator (); i.hasNext ();) {
            ExtActivityLocal dcAct = (ExtActivityLocal)i.next ();
            if (!dcAct.key().equals (act.key())) {
                try {
                    if (dcAct.preliminarilyChosen ()) {
                        dcAct.withdrawPreliminaryChoice (true);
                        update (dcAct);
                    }
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.