Package de.danet.an.workflow.api

Examples of de.danet.an.workflow.api.InvalidKeyException


                return act;
            }
        } catch (RemoteException e) {
            throw new EJBException(e);
        }
  throw new InvalidKeyException ("Key " + key + " is invalid.");
    }   
View Full Code Here


        throws InvalidKeyException {
        ActivityLocal act = (ActivityLocal)activityLocalMap().get(key);
        if (act != null) {
            return act;
        }
        throw new InvalidKeyException ("Key " + key + " is invalid.");
    }   
View Full Code Here

      ProcessLocal proc = ((WfProcessLocalHome)ctx.getEJBLocalHome())
    .findByActivityKey (key);
      return (ExtActivityLocal)proc.activityByKeyLocal(key);
  } catch (FinderException e) {
      logger.debug (e.getMessage (), e);
      throw new InvalidKeyException (e.getMessage());
  }
    }
View Full Code Here

        de.danet.an.workflow.api.Process res = null;
  try {
      res = processHome().findByProcessKey(processKey);
  } catch (ObjectNotFoundException onfe) {
      ctx.setRollbackOnly();
            throw new InvalidKeyException
    ("No process of type = " + processMgrName + ", key = "
     + processKey + ": " + onfe.getMessage());
  } catch (ResourceNotAvailableException re) {
      throw new EJBException(re);
  } catch (FinderException fe) {
View Full Code Here

        throws InvalidKeyException {
        try {
            return processLocalHome().findByProcessKey(processKey);
        } catch (ObjectNotFoundException onfe) {
            ctx.setRollbackOnly();
            throw new InvalidKeyException
                ("No process of type = " + processMgrName + ", key = "
                 + processKey + ": " + onfe.getMessage());
        } catch (ResourceNotAvailableException re) {
            throw new EJBException(re);
        } catch (FinderException fe) {
View Full Code Here

  try {
      Long pk = Long.valueOf (key.activityKey());
      res = activityHome().findByPrimaryKey(pk);
  } catch (NumberFormatException nex) {
      ctx.setRollbackOnly();
      throw new InvalidKeyException ("Cause: " + nex.getMessage ());
  } catch (FinderException nex) {
      throw new InvalidKeyException ("Cause: " + nex.getMessage ());
  } catch (RemoteException nex) {
      throw new EJBException (nex);
  } finally {
      scope.leave (res);
  }
View Full Code Here

  try {
      Long pk = Long.valueOf (key.activityKey());
      res = activityHome().findByPrimaryKey(pk).activityInfo();
  } catch (NumberFormatException nex) {
      ctx.setRollbackOnly();
      throw new InvalidKeyException ("Cause: " + nex.getMessage ());
  } catch (FinderException nex) {
      throw new EJBException (nex);
  } catch (RemoteException nex) {
      throw new EJBException (nex);
  } finally {
View Full Code Here

    prepStmt.setString(2, processId);
    rs = prepStmt.executeQuery();
    if(!rs.next()) {
        // cleanup cache as a side effect
        uncacheDefinition (processType);
        throw new InvalidKeyException
      ("No process with packageId/processId = "+ processType);
    }
    long dbid = rs.getLong(1);
    boolean enabled = (rs.getString(2).charAt(0) == 'T');
                Long xpdlRef = JDBCUtil.getLong(rs, 3);
View Full Code Here

      prepStmt.setString(1, packageId);
      prepStmt.setString(2, processId);
      rs = prepStmt.executeQuery();
      if(!rs.next()) {
    ctx.setRollbackOnly();
                throw new InvalidKeyException
        ("No process with packageId/processId = "
         + packageId + "/" + processId);
      }
      if (rs.getString(1).charAt(0) == 'T') {
    enabled = true;
View Full Code Here

      prepStmt.setString(2, packageId);
      prepStmt.setString(3, processId);
      int rowCount = prepStmt.executeUpdate();
      if (rowCount == 0) {
                ctx.setRollbackOnly();
    throw new InvalidKeyException
        ("No process with packageId/processId = "
         + packageId + "/" + processId);
      }

  } catch (SQLException se) {
View Full Code Here

TOP

Related Classes of de.danet.an.workflow.api.InvalidKeyException

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.