Package de.danet.an.workflow.api

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


    public WfResource asResource (Principal principal)
        throws RemoteException, InvalidKeyException {
        try {
            return rms.asResource (principal);
        } catch (ResourceNotFoundException rnf) {
            throw new InvalidKeyException (rnf.getMessage());
        }
    }
View Full Code Here


    public WfResource resourceByKey (String key)
        throws InvalidKeyException, RemoteException {
        try {
            return rms.resourceByKey (key);
        } catch (ResourceNotFoundException rnf) {
            throw new InvalidKeyException (rnf.getMessage());
        }      
    }
View Full Code Here

        throws InvalidKeyException {
        try {
            return processLocalHome().findByPrimaryKey(new Long(key));
        } catch (FinderException fe) {
            logger.debug (fe.getMessage (), fe);
            throw new InvalidKeyException(fe.getMessage ());
        } catch (ResourceNotAvailableException e) {
            throw new EJBException (e);
        } catch (RemoteException e) {
            throw new EJBException (e);
        }
View Full Code Here

        throws ProcessingException {
        while (true) {
            try {
                Map data = channel.receiveMessage();
                if (data == null) {
                    throw new InvalidKeyException
                        ("Process has been closed or removed");
                }
                return data;
            } catch (InvalidKeyException e) {
                if (session != null) {
View Full Code Here

         + "ResourceKey, AssignedAt, InstData "
         + "FROM SimpleAppl WHERE DBId = ?");
    prepStmt.setLong (1, instId);
    rs = prepStmt.executeQuery();
    if (! rs.next()) {
        throw new InvalidKeyException
      ("No application instance with key = " + instId);
    }
    String actKey = rs.getString (1);
    String prcKey = rs.getString (2);
    String mgrKey = rs.getString (3);
View Full Code Here

    prepStmt.setString (1, auk.activityKey());
    prepStmt.setString (2, auk.processKey());
    prepStmt.setString (3, auk.managerName());
    rs = prepStmt.executeQuery();
    if (! rs.next()) {
        throw new InvalidKeyException
      ("No application instance for activity = " + auk);
    }
    long instId = rs.getLong(1);
    String resKey = rs.getString (2);
    Date asndAt = rs.getTimestamp (3);
View Full Code Here

        (ds, con,
         "UPDATE SimpleAppl SET InstData = ? WHERE DBId = ? ");
    prepStmt.setBinary (1, state);
    prepStmt.setLong (2, instId);
    if (prepStmt.executeUpdate() == 0) {
        throw new InvalidKeyException
      ("No application instance with key = " + instId);
    }
    if (logger.isDebugEnabled()) {
        logger.debug
      ("Updated state for application " + instId);
View Full Code Here

                    (ds, con,
                     "UPDATE SIMPLEAPPL SET RESOURCEKEY = ? WHERE DBID = ? ");
                prepStmt.setString (1, resourceKey);
                prepStmt.setLong (2, instId);
                if (prepStmt.executeUpdate() == 0) {
                    throw new InvalidKeyException
                        ("No application instance with key = " + instId);
                }
                if (logger.isDebugEnabled()) {
                    logger.debug
                        ("Updated resourceKey for application " + instId);
View Full Code Here

        (ds, con, "UPDATE SimpleAppl "
         + "SET ActivityKey = ? WHERE DBId = ?");
    prepStmt.setString (1, auk == null ? null : auk.activityKey());
    prepStmt.setLong (2, instId);
    if (prepStmt.executeUpdate() == 0) {
        throw new InvalidKeyException
      ("No application instance with key = " + instId);
    }
    if (logger.isDebugEnabled()) {
        logger.debug ("Application " + instId
          + " has been associated with " + auk);
View Full Code Here

    public Process processByKey (String key)
  throws InvalidKeyException, RemoteException {
  try {
      return (Process)processHome.findByProcessKey (key);
  } catch (ObjectNotFoundException onfx) {
      throw new InvalidKeyException
    ("Key " + key + " is invalid: " + onfx.getMessage());
  } catch (FinderException fex) {
      logger.error (fex.getMessage(), fex);
      throw new RemoteException (fex.getMessage());
  }
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.