Package de.danet.an.workflow.localapi

Examples of de.danet.an.workflow.localapi.TransitionLocal


  // new evaluation needed
  nextActivitiesCache = new ArrayList();
  List allTrans = ((ProcessLocal)containerLocal()).transitionsLocal();
  for (Iterator tri = allTrans.iterator(); tri.hasNext();) {
      TransitionLocal trans = (TransitionLocal)tri.next();
      if (key().equals (trans.from().key())) {
    nextActivitiesCache.add
                    (((ExtActivityLocal)trans.to()).toActivity());
      }
  }
  return nextActivitiesCache;
    }
View Full Code Here


     * Comment copied from interface or superclass.
     */
    public List transitionsLocalFrom(String fromActivityKey) {
        List res = new ArrayList();
        for (Iterator iter = transitions.iterator(); iter.hasNext();) {
            TransitionLocal trans = (TransitionLocal)iter.next();
            if (trans.from().key().equals(fromActivityKey)) {
                res.add(trans);
            }
        }
        return res;
    }
View Full Code Here

     * @return the created transition.
     */
    protected TransitionLocal doCreateTransition
  (String id, String group, int order, ActivityLocal fromAct,
   ActivityLocal toAct, int condType, String cond) {
  TransitionLocal trans = new ExtTransitionDefinition
      (paKey,id,group,order,fromAct,toAct,condType,cond);
  transitions.add(trans);
  return trans;
    }
View Full Code Here

  }
  // exception names from transitions
  List fromTrans
      = ((ProcessLocal)containerLocal()).transitionsLocalFrom(key());
  for (Iterator tri = fromTrans.iterator(); tri.hasNext();) {
      TransitionLocal trans = (TransitionLocal)tri.next();
      if (trans.conditionType() ==
                de.danet.an.workflow.api.Transition.COND_TYPE_EXCEPTION) {
    res.add (trans.condition());
      }
  }
  return (String[])res.toArray(new String[res.size ()]);
    }
View Full Code Here

     */
    protected TransitionLocal doCreateTransition
  (String id, String group, int order,
         ActivityLocal fromAct, ActivityLocal toAct,
   int condType, String condition) {
  TransitionLocal trans = new InternalTransitionDefinition
      (this, ((Long)ctx.getPrimaryKey()).toString(),
       id, group, order, fromAct, toAct, condType, condition, false);
  transitionsLocalCache.add(trans);
  String fromKey = fromAct.key();
  if (!transLocalByFrom.containsKey(fromKey)) {
View Full Code Here

    (ds, con, "INSERT INTO transition ("
     + "TransitionId, ProcessDBId, FromActivity, ToActivity, "
     + "TransGroup, TransOrder, CondType, TransCond) "
     + "VALUES (?, ?, ?, ?, ?, ?, ?, ?)");
      while (it.hasNext()) {
    TransitionLocal t = (TransitionLocal)it.next();
    TransitionDefinitionLocal td = (TransitionDefinitionLocal)t;
    try {
        int offset = 1;
        prepStmt.setString(offset++, t.id());
        prepStmt.setLong(offset++,
             ((Long)ctx.getPrimaryKey()).longValue());
        prepStmt.setLong
      (offset++, Long.parseLong(t.from().key()));
        prepStmt.setLong
      (offset++, Long.parseLong(t.to().key()));
        prepStmt.setString(offset++, td.group());
        prepStmt.setInt(offset++, td.order());
        prepStmt.setInt(offset++, td.conditionType());
        prepStmt.setString(offset++, td.condition());
    } catch (NumberFormatException re) {
View Full Code Here

TOP

Related Classes of de.danet.an.workflow.localapi.TransitionLocal

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.