|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TaskService
Manages tasks for users
Method Summary | |
---|---|
TaskID |
assignTask(TokenID tokenID,
java.lang.String message,
UserID userID,
java.util.Date due)
assigns a new task to a given user |
TaskID[] |
assignTaskToActors(TokenID tokenID,
java.lang.String message,
Actor[] actor,
java.util.Date due)
Assigns a new task to a given abstract named Actor. |
TaskID |
assignTaskToTeam(TokenID tokenID,
java.lang.String message,
GroupID groupID,
java.util.Date due)
Assigns a new task to a given group of users. |
Renderer |
getRendererForTask(TaskID taskID,
java.lang.Class rendererType)
|
ResponseHandler |
getResponseHandlerForTask(TaskID taskID,
java.lang.Class handlerType)
|
Task |
getTaskByID(TaskID taskID)
gets a task object by id |
java.util.List |
getTasksForGroups(GroupID[] groupIDs,
int status)
Returns a list of tasks for the groups in which a user belongs. |
java.util.List |
getTasksForInstance(InstanceID instanceID,
int status)
Returns a list of tasks for the given workflow instance which are at the specified status |
java.util.List |
getTasksForUser(UserID userID,
int status)
returns a list of tasks for a user |
boolean |
lockTaskForUser(TaskID taskID,
UserID userID)
Attempts to lock the given task for the user, to take ownership of the task if noone else has locked it yet. |
void |
setTaskStatus(TaskID taskID,
int status)
sets the status of a test |
int |
setTaskStatusForInstance(InstanceID instanceID,
int oldStatus,
int newStatus)
Updates the status of all tasks of the oldStatus on the given workflow instance to the newStatus. |
void |
unlockTaskForUser(TaskID taskID,
UserID userID)
Unlocks the task for the given user so that its given back to the team for another user to complete. |
Method Detail |
---|
TaskID assignTask(TokenID tokenID, java.lang.String message, UserID userID, java.util.Date due)
tokenID
- message
- userID
- due
-
TaskID assignTaskToTeam(TokenID tokenID, java.lang.String message, GroupID groupID, java.util.Date due)
tokenID
- message
- groupID
- due
-
TaskID[] assignTaskToActors(TokenID tokenID, java.lang.String message, Actor[] actor, java.util.Date due)
tokenID
- message
- actor
- due
-
java.util.List getTasksForUser(UserID userID, int status)
userID
-
java.util.List getTasksForGroups(GroupID[] groupIDs, int status)
groupIDs
-
java.util.List getTasksForInstance(InstanceID instanceID, int status)
int setTaskStatusForInstance(InstanceID instanceID, int oldStatus, int newStatus)
instanceID
- oldStatus
- the current status of the tasksnewStatus
- the new status of the tasks
boolean lockTaskForUser(TaskID taskID, UserID userID)
taskID
- userID
-
void unlockTaskForUser(TaskID taskID, UserID userID)
taskID
- userID
- void setTaskStatus(TaskID taskID, int status)
taskID
- status
- Task getTaskByID(TaskID taskID)
taskID
-
Renderer getRendererForTask(TaskID taskID, java.lang.Class rendererType)
ResponseHandler getResponseHandlerForTask(TaskID taskID, java.lang.Class handlerType)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |