jBPM Console NG - Human Tasks API 6.0.0.Beta2

org.jbpm.console.ng.ht.service
Interface TaskServiceEntryPoint


public interface TaskServiceEntryPoint


Method Summary
 long addComment(long taskId, String text, String addedBy, Date addedOn)
           
 long addTask(String taskString, Map<String,Object> inputs, Map<String,Object> templateInputs)
           
 long addTaskAndStart(String taskString, Map<String,Object> inputs, String userId, Map<String,Object> templateInputs)
           
 void claim(long taskId, String user)
           
 void claimBatch(List<Long> taskIds, String user)
           
 void complete(long taskId, String user, Map<String,Object> params)
           
 void completeBatch(List<Long> taskIds, String user, Map<String,Object> params)
           
 void deleteComment(long taskId, long commentId)
           
 void forward(long taskId, String userId, String targetEntityId)
           
 List<CommentSummary> getAllCommentsByTaskId(long taskId)
           
 CommentSummary getCommentById(long commentId)
           
 int getCompletedTaskByUserId(String userId)
           
 Map<String,String> getContentListById(long contentId)
           
 Map<String,String> getContentListByTaskId(long taskId)
           
 List<String> getDescriptions(long taskId)
           
 Date getExpirationDate(long taskId)
           
 List<IdentitySummary> getOrganizationalEntities()
           
 IdentitySummary getOrganizationalEntityById(String entityId)
           
 int getPendingTaskByUserId(String userId)
           
 int getPriority(long taskId)
           
 List<TaskSummary> getSubTasksAssignedAsPotentialOwner(long parentId, String userId, String language)
           
 List<TaskSummary> getSubTasksByParent(long parentId)
           
 String getSubTaskStrategy(long taskId)
           
 TaskSummary getTaskDetails(long taskId)
           
 Map<String,String> getTaskOutputContentByTaskId(long taskId)
           
 List<TaskSummary> getTasksAssignedAsBusinessAdministrator(String userId, String language)
           
 List<TaskSummary> getTasksAssignedAsExcludedOwner(String userId, String language)
           
 List<TaskSummary> getTasksAssignedAsPotentialOwner(String userId, List<String> groupIds, String language)
           
 List<TaskSummary> getTasksAssignedAsPotentialOwner(String userId, List<String> groupIds, String language, int firstResult, int maxResult)
           
 List<TaskSummary> getTasksAssignedAsPotentialOwner(String userId, String language)
           
 List<TaskSummary> getTasksAssignedAsRecipient(String userId, String language)
           
 List<TaskSummary> getTasksAssignedAsTaskInitiator(String userId, String language)
           
 List<TaskSummary> getTasksAssignedAsTaskStakeholder(String userId, String language)
           
 List<TaskSummary> getTasksAssignedByGroup(String groupId, String language)
           
 List<TaskSummary> getTasksAssignedByGroups(List<String> groupsId, String language)
           
 Map<Day,List<TaskSummary>> getTasksAssignedFromDateToDateByGroupsByDays(List<String> groupIds, Date from, Date to, String language)
          Gets the mapping 'Day -> list of assigned groups tasks' from start day to end day (including).
 Map<Day,List<TaskSummary>> getTasksAssignedFromDateToDateByGroupsByDays(List<String> groupIds, Date from, int nrOfDaysTotal, String language)
          Gets the mapping 'Day -> list of assigned groups tasks' starting from specified day and for specified number of days.
 Map<Day,List<TaskSummary>> getTasksAssignedFromDateToDatePersonalAndGroupsTasksByDays(String userId, List<String> groupIds, Date from, Date to, String language)
          Gets the mapping 'Day -> list of assigned personal and groups tasks' from start day to end day (including).
 Map<Day,List<TaskSummary>> getTasksAssignedFromDateToDatePersonalAndGroupsTasksByDays(String userId, List<String> groupIds, Date from, int nrOfDaysTotal, String language)
          Gets the mapping 'Day -> list of assigned personal and groups tasks' starting from specified day and for specified number of days.
 List<TaskSummary> getTasksAssignedPersonalAndGroupsTasks(String userId, List<String> groupIds, String language)
           
 List<TaskSummary> getTasksAssignedPersonalAndGroupTasks(String userId, String groupId, String language)
           
 List<TaskSummary> getTasksOwned(String userId, String language)
           
 List<TaskSummary> getTasksOwnedByStatus(String userId, List<String> status, String language)
           
 Map<Day,List<TaskSummary>> getTasksOwnedFromDateToDateByDays(String userId, Date from, Date to, String language)
          Gets the mapping 'Day -> list of owned tasks' from start day to end day (including).
 Map<Day,List<TaskSummary>> getTasksOwnedFromDateToDateByDays(String userId, Date from, int nrOfDaysTotal, String language)
          Gets the mapping 'Day -> list of owned tasks' starting from specified day and for specified number of days.
 Map<Day,List<TaskSummary>> getTasksOwnedFromDateToDateByDays(String userId, List<String> strStatuses, Date from, Date to, String language)
          Gets the mapping 'Day -> list of owned tasks' from start day to end day (including).
 Map<Day,List<TaskSummary>> getTasksOwnedFromDateToDateByDays(String userId, List<String> strStatuses, Date from, int nrOfDaysTotal, String language)
          Gets the mapping 'Day -> list of owned tasks' starting from specified dayand for specified number of days.
 boolean isSkipable(long taskId)
           
 void release(long taskId, String user)
           
 void releaseBatch(List<Long> taskIds, String user)
           
 long saveContent(long taskId, Map<String,String> values)
           
 void setDescriptions(long taskId, List<String> descriptions)
           
 void setExpirationDate(long taskId, Date date)
           
 void setPriority(long taskId, int priority)
           
 void setSkipable(long taskId, boolean skipable)
           
 void setSubTaskStrategy(long taskId, String strategy)
           
 void start(long taskId, String user)
           
 void startBatch(List<Long> taskIds, String user)
           
 void updateSimpleTaskDetails(long taskId, List<String> taskNames, int priority, List<String> taskDescription, String subTaskStrategy, Date dueDate)
           
 

Method Detail

getTasksAssignedAsBusinessAdministrator

List<TaskSummary> getTasksAssignedAsBusinessAdministrator(String userId,
                                                          String language)

getTasksAssignedAsExcludedOwner

List<TaskSummary> getTasksAssignedAsExcludedOwner(String userId,
                                                  String language)

getTasksAssignedAsPotentialOwner

List<TaskSummary> getTasksAssignedAsPotentialOwner(String userId,
                                                   String language)

getTasksAssignedAsPotentialOwner

List<TaskSummary> getTasksAssignedAsPotentialOwner(String userId,
                                                   List<String> groupIds,
                                                   String language)

getTasksAssignedAsPotentialOwner

List<TaskSummary> getTasksAssignedAsPotentialOwner(String userId,
                                                   List<String> groupIds,
                                                   String language,
                                                   int firstResult,
                                                   int maxResult)

getTasksAssignedAsRecipient

List<TaskSummary> getTasksAssignedAsRecipient(String userId,
                                              String language)

getTasksAssignedAsTaskInitiator

List<TaskSummary> getTasksAssignedAsTaskInitiator(String userId,
                                                  String language)

getTasksAssignedAsTaskStakeholder

List<TaskSummary> getTasksAssignedAsTaskStakeholder(String userId,
                                                    String language)

getTasksAssignedByGroup

List<TaskSummary> getTasksAssignedByGroup(String groupId,
                                          String language)

getTasksAssignedByGroups

List<TaskSummary> getTasksAssignedByGroups(List<String> groupsId,
                                           String language)

getTasksOwnedFromDateToDateByDays

Map<Day,List<TaskSummary>> getTasksOwnedFromDateToDateByDays(String userId,
                                                             Date from,
                                                             Date to,
                                                             String language)
Gets the mapping 'Day -> list of owned tasks' from start day to end day (including). Only active tasks are considered (task with status "InProgress", "Reserved" or "Created").

Parameters:
userId - id of the task owner
from - start day
to - end day
language -
Returns:
list of tasks per day for specified days (dates)

getTasksOwnedFromDateToDateByDays

Map<Day,List<TaskSummary>> getTasksOwnedFromDateToDateByDays(String userId,
                                                             Date from,
                                                             int nrOfDaysTotal,
                                                             String language)
Gets the mapping 'Day -> list of owned tasks' starting from specified day and for specified number of days. Only active tasks are considered (task with status "InProgress", "Reserved" or "Created").

Parameters:
userId - id of the task owner
from - start day
nrOfDaysTotal - how many days to return including start date
language -
Returns:
list of task per day for specified days (dates)

getTasksOwnedFromDateToDateByDays

Map<Day,List<TaskSummary>> getTasksOwnedFromDateToDateByDays(String userId,
                                                             List<String> strStatuses,
                                                             Date from,
                                                             Date to,
                                                             String language)
Gets the mapping 'Day -> list of owned tasks' from start day to end day (including). Only tasks with specified statuses are considered.

Parameters:
userId - id of the task owner
strStatuses - list of statuses
from - start day
to - end day
language -
Returns:
list of tasks per day for specified days (dates)

getTasksOwnedFromDateToDateByDays

Map<Day,List<TaskSummary>> getTasksOwnedFromDateToDateByDays(String userId,
                                                             List<String> strStatuses,
                                                             Date from,
                                                             int nrOfDaysTotal,
                                                             String language)
Gets the mapping 'Day -> list of owned tasks' starting from specified dayand for specified number of days. Only tasks with specified statuses are considered.

Parameters:
userId - id of the task owner
from - start day
nrOfDaysTotal - how many days to return including start date
language -
Returns:
list of tasks per day for specified days (dates)

getTasksAssignedFromDateToDatePersonalAndGroupsTasksByDays

Map<Day,List<TaskSummary>> getTasksAssignedFromDateToDatePersonalAndGroupsTasksByDays(String userId,
                                                                                      List<String> groupIds,
                                                                                      Date from,
                                                                                      Date to,
                                                                                      String language)
Gets the mapping 'Day -> list of assigned personal and groups tasks' from start day to end day (including). Only tasks with status "Ready", "InProgress", "Reserved" or "Created" are considered.

Parameters:
userId - id of the task owner
groupIds - list of group ids
from - start day
to - end day
language -
Returns:
list of tasks per day for specified days (dates)

getTasksAssignedFromDateToDatePersonalAndGroupsTasksByDays

Map<Day,List<TaskSummary>> getTasksAssignedFromDateToDatePersonalAndGroupsTasksByDays(String userId,
                                                                                      List<String> groupIds,
                                                                                      Date from,
                                                                                      int nrOfDaysTotal,
                                                                                      String language)
Gets the mapping 'Day -> list of assigned personal and groups tasks' starting from specified day and for specified number of days. Only tasks with status "Ready", "InProgress", "Reserved" or "Created" are considered.

Parameters:
userId - id of the task owner
groupIds - list of group ids
from - start day
nrOfDaysTotal - how many days to return including start date
language -
Returns:
list of tasks per day for specified days (dates)

getTasksAssignedFromDateToDateByGroupsByDays

Map<Day,List<TaskSummary>> getTasksAssignedFromDateToDateByGroupsByDays(List<String> groupIds,
                                                                        Date from,
                                                                        Date to,
                                                                        String language)
Gets the mapping 'Day -> list of assigned groups tasks' from start day to end day (including).

Parameters:
groupIds - list of group ids
from - start day
to - end day
language -
Returns:
list of tasks per day for specified days (dates)

getTasksAssignedFromDateToDateByGroupsByDays

Map<Day,List<TaskSummary>> getTasksAssignedFromDateToDateByGroupsByDays(List<String> groupIds,
                                                                        Date from,
                                                                        int nrOfDaysTotal,
                                                                        String language)
Gets the mapping 'Day -> list of assigned groups tasks' starting from specified day and for specified number of days.

Parameters:
groupIds - list of group ids
from - start day
nrOfDaysTotal - how many days to return including start date
language -
Returns:
list of tasks per day for specified days (dates)

getTasksOwned

List<TaskSummary> getTasksOwned(String userId,
                                String language)

getTasksOwnedByStatus

List<TaskSummary> getTasksOwnedByStatus(String userId,
                                        List<String> status,
                                        String language)

getSubTasksAssignedAsPotentialOwner

List<TaskSummary> getSubTasksAssignedAsPotentialOwner(long parentId,
                                                      String userId,
                                                      String language)

getSubTasksByParent

List<TaskSummary> getSubTasksByParent(long parentId)

addTask

long addTask(String taskString,
             Map<String,Object> inputs,
             Map<String,Object> templateInputs)

addTaskAndStart

long addTaskAndStart(String taskString,
                     Map<String,Object> inputs,
                     String userId,
                     Map<String,Object> templateInputs)

start

void start(long taskId,
           String user)

startBatch

void startBatch(List<Long> taskIds,
                String user)

claim

void claim(long taskId,
           String user)

claimBatch

void claimBatch(List<Long> taskIds,
                String user)

complete

void complete(long taskId,
              String user,
              Map<String,Object> params)

completeBatch

void completeBatch(List<Long> taskIds,
                   String user,
                   Map<String,Object> params)

release

void release(long taskId,
             String user)

releaseBatch

void releaseBatch(List<Long> taskIds,
                  String user)

forward

void forward(long taskId,
             String userId,
             String targetEntityId)

setPriority

void setPriority(long taskId,
                 int priority)

setExpirationDate

void setExpirationDate(long taskId,
                       Date date)

setDescriptions

void setDescriptions(long taskId,
                     List<String> descriptions)

setSkipable

void setSkipable(long taskId,
                 boolean skipable)

setSubTaskStrategy

void setSubTaskStrategy(long taskId,
                        String strategy)

getPriority

int getPriority(long taskId)

getExpirationDate

Date getExpirationDate(long taskId)

getDescriptions

List<String> getDescriptions(long taskId)

isSkipable

boolean isSkipable(long taskId)

getSubTaskStrategy

String getSubTaskStrategy(long taskId)

getTaskDetails

TaskSummary getTaskDetails(long taskId)

saveContent

long saveContent(long taskId,
                 Map<String,String> values)

getContentListById

Map<String,String> getContentListById(long contentId)

getTaskOutputContentByTaskId

Map<String,String> getTaskOutputContentByTaskId(long taskId)

getContentListByTaskId

Map<String,String> getContentListByTaskId(long taskId)

getCompletedTaskByUserId

int getCompletedTaskByUserId(String userId)

getPendingTaskByUserId

int getPendingTaskByUserId(String userId)

getTasksAssignedPersonalAndGroupTasks

List<TaskSummary> getTasksAssignedPersonalAndGroupTasks(String userId,
                                                        String groupId,
                                                        String language)

getTasksAssignedPersonalAndGroupsTasks

List<TaskSummary> getTasksAssignedPersonalAndGroupsTasks(String userId,
                                                         List<String> groupIds,
                                                         String language)

getOrganizationalEntityById

IdentitySummary getOrganizationalEntityById(String entityId)

getOrganizationalEntities

List<IdentitySummary> getOrganizationalEntities()

addComment

long addComment(long taskId,
                String text,
                String addedBy,
                Date addedOn)

deleteComment

void deleteComment(long taskId,
                   long commentId)

getAllCommentsByTaskId

List<CommentSummary> getAllCommentsByTaskId(long taskId)

getCommentById

CommentSummary getCommentById(long commentId)

updateSimpleTaskDetails

void updateSimpleTaskDetails(long taskId,
                             List<String> taskNames,
                             int priority,
                             List<String> taskDescription,
                             String subTaskStrategy,
                             Date dueDate)

jBPM Console NG - Human Tasks API 6.0.0.Beta2

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.