Package org.jbpm

Examples of org.jbpm.JbpmException


        inputStream = getInputStreamFromFileSystem(name);
      } else { // its stored in the database
        inputStream = getInputStreamFromDb(name);
      }
    } catch (Exception e) {
      throw new JbpmException("couldn't get inputstream for file '" + name + "'", e);
    }
    return inputStream;
  }
View Full Code Here


        bytes = getBytesFromFileSystem(name);
      } else { // its stored in the database
        bytes = getBytesFromDb(name);
      }
    } catch (Exception e) {
      throw new JbpmException("couldn't get value for file '" + name + "'", e);
    }
    return bytes;
  }
View Full Code Here

      query.setString("actorId", actorId);
      return CollectionUtil.checkList(query.list(), TaskInstance.class);
    }
    catch (Exception e) {
      handle(e);
      throw new JbpmException("couldn't get task instances list for actor '" + actorId + "'", e);
    }
  }
View Full Code Here

      query.setParameterList("actorIds", actorIds);
      return CollectionUtil.checkList(query.list(), TaskInstance.class);
    }
    catch (Exception e) {
      handle(e);
      throw new JbpmException("couldn't get task instances list for actors '" + actorIds + "'", e);
    }
  }
View Full Code Here

      List<Long> taskInstanceIds = CollectionUtil.checkList(query.list(), Long.class);
      return findTaskInstancesByIds(taskInstanceIds);
    }
    catch (Exception e) {
      handle(e);
      throw new JbpmException(
          "couldn't get pooled task instances list for actor '" + actorId + "'", e);
    }
  }
View Full Code Here

      List<Long> taskInstanceIds = CollectionUtil.checkList(query.list(), Long.class);
      return findTaskInstancesByIds(taskInstanceIds);
    }
    catch (Exception e) {
      handle(e);
      throw new JbpmException("couldn't get pooled task instances list for actors '"
          + actorIds
          + "'", e);
    }
  }
View Full Code Here

      query.setLong("tokenId", tokenId);
      return CollectionUtil.checkList(query.list(), TaskInstance.class);
    }
    catch (Exception e) {
      handle(e);
      throw new JbpmException("couldn't get task instances by token '" + tokenId + "'", e);
    }
  }
View Full Code Here

      query.setEntity("processInstance", processInstance);
      return CollectionUtil.checkList(query.list(), TaskInstance.class);
    }
    catch (Exception e) {
      handle(e);
      throw new JbpmException("couldn't get task instances by process instance '"
          + processInstance
          + "'", e);
    }
  }
View Full Code Here

    try {
      taskInstance = (TaskInstance) session.load(TaskInstance.class, new Long(taskInstanceId));
    }
    catch (Exception e) {
      handle(e);
      throw new JbpmException("couldn't get task instance '" + taskInstanceId + "'", e);
    }
    return taskInstance;
  }
View Full Code Here

    try {
      taskInstance = (TaskInstance) session.get(TaskInstance.class, new Long(taskInstanceId));
    }
    catch (Exception e) {
      handle(e);
      throw new JbpmException("couldn't get task instance '" + taskInstanceId + "'", e);
    }
    return taskInstance;
  }
View Full Code Here

TOP

Related Classes of org.jbpm.JbpmException

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.