jBPM Console NG - Human Tasks API 6.0.0.CR2

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 addTaskAndClaimAndStart(String taskString, Map<String,Object> inputs, String userId, Map<String,Object> templateVars)
           
 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)
           
 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)
           
 Map<Long,List<String>> getPotentialOwnersForTaskIds(List<Long> taskIds)
           
 int getPriority(long taskId)
           
 String getSubTaskStrategy(long taskId)
           
 TaskSummary getTaskDetails(long taskId)
           
 Map<String,String> getTaskOutputContentByTaskId(long taskId)
           
 List<TaskSummary> getTasksAssignedAsPotentialOwnerByExpirationDateOptional(String userId, List<String> status, Date from, String language)
           
 Map<Day,List<TaskSummary>> getTasksAssignedAsPotentialOwnerFromDateToDateByDays(String userId, List<String> strStatuses, Date from, int nrOfDaysTotal, String language)
           
 List<TaskSummary> getTasksOwnedByExpirationDateOptional(String userId, List<String> strStatuses, Date from, String language)
           
 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, Date dueDate)
           
 

Method Detail

getTasksAssignedAsPotentialOwnerByExpirationDateOptional

List<TaskSummary> getTasksAssignedAsPotentialOwnerByExpirationDateOptional(String userId,
                                                                           List<String> status,
                                                                           Date from,
                                                                           String language)

getTasksAssignedAsPotentialOwnerFromDateToDateByDays

Map<Day,List<TaskSummary>> getTasksAssignedAsPotentialOwnerFromDateToDateByDays(String userId,
                                                                                List<String> strStatuses,
                                                                                Date from,
                                                                                int nrOfDaysTotal,
                                                                                String language)

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)

getTasksOwnedByExpirationDateOptional

List<TaskSummary> getTasksOwnedByExpirationDateOptional(String userId,
                                                        List<String> strStatuses,
                                                        Date from,
                                                        String language)

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)

addTaskAndClaimAndStart

long addTaskAndClaimAndStart(String taskString,
                             Map<String,Object> inputs,
                             String userId,
                             Map<String,Object> templateVars)

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)

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,
                             Date dueDate)

getPotentialOwnersForTaskIds

Map<Long,List<String>> getPotentialOwnersForTaskIds(List<Long> taskIds)

jBPM Console NG - Human Tasks API 6.0.0.CR2

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