|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.agila.services.task.AbstractTaskService
org.apache.agila.impl.memory.TaskServiceImpl
public class TaskServiceImpl
Constructor Summary | |
---|---|
TaskServiceImpl()
|
Method Summary | |
---|---|
java.util.List |
getTasksForGroups(GroupID[] teamIDs,
int status)
Returns a list of tasks for the groups in which a user belongs. |
java.util.List |
getTasksForInstance(InstanceID instanceID,
int type)
Returns a list of tasks for the given workflow instance which are at the specified status |
protected Task |
internalGetTask(TaskID taskID)
|
protected java.util.List |
internalGetTasksByUserID(UserID userID,
int type)
|
protected void |
internalSave(Task ti)
Add or update a task. |
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. |
int |
setTaskStatusForInstance(InstanceID instanceID,
int oldType,
int newType)
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. |
Methods inherited from class org.apache.agila.services.task.AbstractTaskService |
---|
assignTask, assignTaskToActors, assignTaskToTeam, getRendererForTask, getResponseHandlerForTask, getTaskByID, getTasksForUser, setActorResolverService, setBusinessProcessService, setInstanceService, setNotificationService, setTaskStatus, setTimerService, setTokenService |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TaskServiceImpl()
Method Detail |
---|
public java.util.List getTasksForGroups(GroupID[] teamIDs, int status)
TaskService
public boolean lockTaskForUser(TaskID taskID, UserID userID)
TaskService
public void unlockTaskForUser(TaskID taskID, UserID userID)
TaskService
public java.util.List getTasksForInstance(InstanceID instanceID, int type)
TaskService
public int setTaskStatusForInstance(InstanceID instanceID, int oldType, int newType)
TaskService
oldType
- the current status of the tasksnewType
- the new status of the tasks
protected void internalSave(Task ti)
internalSave
in class AbstractTaskService
protected java.util.List internalGetTasksByUserID(UserID userID, int type)
internalGetTasksByUserID
in class AbstractTaskService
protected Task internalGetTask(TaskID taskID)
internalGetTask
in class AbstractTaskService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |