Exemplo n.º 1
0
  public Map<String, Object> getTaskContent(long taskId) {
    Task taskById = taskQueryService.getTaskInstanceById(taskId);
    Content contentById =
        taskContentService.getContentById(taskById.getTaskData().getDocumentContentId());

    Object unmarshalledObject = ContentMarshallerHelper.unmarshall(contentById.getContent(), null);
    if (!(unmarshalledObject instanceof Map)) {
      throw new IllegalStateException(
          " The Task Content Needs to be a Map in order to use this method and it was: "
              + unmarshalledObject.getClass());
    }
    Map<String, Object> content = (Map<String, Object>) unmarshalledObject;

    return content;
  }
Exemplo n.º 2
0
 public List<TaskSummary> getTasksAssignedByGroups(List<String> groupIds, String language) {
   return taskQueryService.getTasksAssignedByGroups(groupIds, language);
 }
Exemplo n.º 3
0
 public List<TaskSummary> getTasksAssignedByGroup(String groupId, String language) {
   return taskQueryService.getTasksAssignedByGroup(groupId, language);
 }
Exemplo n.º 4
0
 public Task getTaskInstanceById(long taskId) {
   return taskQueryService.getTaskInstanceById(taskId);
 }
Exemplo n.º 5
0
 public Task getTaskByWorkItemId(long workItemId) {
   return taskQueryService.getTaskByWorkItemId(workItemId);
 }
Exemplo n.º 6
0
 public List<TaskSummary> getSubTasksByParent(long parentId) {
   return taskQueryService.getSubTasksByParent(parentId);
 }
Exemplo n.º 7
0
 public List<TaskSummary> getTasksAssignedAsPotentialOwner(String userId, String language) {
   return taskQueryService.getTasksAssignedAsPotentialOwner(userId, language);
 }
Exemplo n.º 8
0
 @Override
 public List<TaskSummary> getTasksByStatusByProcessIdByTaskName(
     long processInstanceId, List<Status> status, String taskName, String language) {
   return taskQueryService.getTasksByStatusByProcessIdByTaskName(
       processInstanceId, status, taskName, language);
 }
Exemplo n.º 9
0
 public List<TaskSummary> getTasksAssignedByGroupsByExpirationDateOptional(
     List<String> groupIds, String language, Date expirationDate) {
   return taskQueryService.getTasksAssignedByGroupsByExpirationDateOptional(
       groupIds, language, expirationDate);
 }
Exemplo n.º 10
0
 public List<TaskSummary> getTasksAssignedAsPotentialOwnerByStatus(
     String salaboy, List<Status> status, String language) {
   return taskQueryService.getTasksAssignedAsPotentialOwnerByStatus(salaboy, status, language);
 }
Exemplo n.º 11
0
 public List<TaskSummary> getTasksOwned(String userId, List<Status> status, String language) {
   return taskQueryService.getTasksOwned(userId, status, language);
 }
Exemplo n.º 12
0
 public List<TaskSummary> getTasksOwned(String userId) {
   return taskQueryService.getTasksOwned(userId);
 }
Exemplo n.º 13
0
 public List<TaskSummary> getTasksAssignedAsTaskStakeholder(String userId, String language) {
   return taskQueryService.getTasksAssignedAsTaskStakeholder(userId, language);
 }
Exemplo n.º 14
0
 public List<TaskSummary> getTasksAssignedAsRecipient(String userId, String language) {
   return taskQueryService.getTasksAssignedAsRecipient(userId, language);
 }
Exemplo n.º 15
0
 public List<TaskSummary> getTasksAssignedAsPotentialOwner(
     String userId, List<String> groupIds, String language, int firstResult, int maxResults) {
   return taskQueryService.getTasksAssignedAsPotentialOwner(
       userId, groupIds, language, firstResult, maxResults);
 }
Exemplo n.º 16
0
 public List<TaskSummary> getTasksAssignedAsPotentialOwnerByStatusByGroup(
     String userId, List<String> groupIds, List<Status> status, String language) {
   return taskQueryService.getTasksAssignedAsPotentialOwnerByStatusByGroup(
       userId, groupIds, status, language);
 }
Exemplo n.º 17
0
 @Override
 public List<TaskSummary> getTasksOwnedByExpirationDateOptional(
     String userId, List<Status> statuses, Date expirationDate) {
   return taskQueryService.getTasksOwnedByExpirationDateOptional(userId, statuses, expirationDate);
 }
Exemplo n.º 18
0
 public List<TaskSummary> getSubTasksAssignedAsPotentialOwner(
     long parentId, String userId, String language) {
   return taskQueryService.getSubTasksAssignedAsPotentialOwner(parentId, userId, language);
 }
Exemplo n.º 19
0
 @Override
 public List<Long> getTasksByProcessInstanceId(long processInstanceId) {
   return taskQueryService.getTasksByProcessInstanceId(processInstanceId);
 }
Exemplo n.º 20
0
 public List<TaskSummary> getTasksAssignedAsBusinessAdministrator(String userId, String language) {
   return taskQueryService.getTasksAssignedAsBusinessAdministrator(userId, language);
 }