|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TaskService
task management.
| Method Summary | |
|---|---|
HistoryComment |
addReplyComment(java.lang.String commentId,
java.lang.String message)
add a reply to another comment |
HistoryComment |
addTaskComment(java.lang.String taskId,
java.lang.String message)
add a comment to a task |
void |
addTaskParticipatingGroup(java.lang.String taskId,
java.lang.String groupId,
java.lang.String participationType)
add a role to a given task. |
void |
addTaskParticipatingUser(java.lang.String taskId,
java.lang.String userId,
java.lang.String participationType)
add a role to a given task. |
void |
assignTask(java.lang.String taskId,
java.lang.String userId)
assigns this task to the given assignee. |
void |
completeTask(java.lang.String taskId)
Deletes this task, marks the related history task as completed. |
void |
completeTask(java.lang.String taskId,
java.lang.String outcome)
Deletes this task, marks the related history task as completed with the specified outcome. |
TaskQuery |
createTaskQuery()
create a new query for tasks |
void |
deleteComment(java.lang.String commentId)
delete a comment. |
void |
deleteTask(java.lang.String taskId)
Deletes the task without completing it. |
void |
deleteTask(java.lang.String taskId,
java.lang.String reason)
Deletes the task without completing indicating the reason. |
void |
deleteTaskCascade(java.lang.String taskId)
deletes this task, including all history information |
java.util.List<Task> |
findGroupTasks(java.lang.String userId)
list of tasks that can be taken by the given user. |
java.util.List<Task> |
findPersonalTasks(java.lang.String userId)
list of tasks that are assigned to the given user. |
java.util.Set<java.lang.String> |
getOutcomes(java.lang.String taskId)
the set of possible valid outcomes for this task. |
java.util.List<Task> |
getSubTasks(java.lang.String taskId)
get the subtasks for this task. |
Task |
getTask(java.lang.String taskId)
Retrieves the task with the given identifier from persistent storage. |
java.util.List<HistoryComment> |
getTaskComments(java.lang.String taskId)
get the list of comments made to a task. |
java.util.List<Participation> |
getTaskParticipations(java.lang.String taskId)
get roles related to a given task. |
java.lang.Object |
getVariable(java.lang.String taskId,
java.lang.String variableName)
retrieves a variable |
java.util.Set<java.lang.String> |
getVariableNames(java.lang.String taskId)
all the variables visible in the given task |
java.util.Map<java.lang.String,java.lang.Object> |
getVariables(java.lang.String taskId,
java.util.Set<java.lang.String> variableNames)
retrieves a map of variables |
Task |
newTask()
Creates a task. |
Task |
newTask(java.lang.String parentTaskId)
Creates a new subtask for the given task. |
void |
removeTaskParticipatingGroup(java.lang.String taskId,
java.lang.String groupId,
java.lang.String participationType)
removes a role to a given task. |
void |
removeTaskParticipatingUser(java.lang.String taskId,
java.lang.String userId,
java.lang.String participationType)
removes a role to a given task. |
java.lang.String |
saveTask(Task task)
Saves the given task to persistent storage. |
void |
setVariables(java.lang.String taskId,
java.util.Map<java.lang.String,java.lang.Object> variables)
creates or overwrites the variable values on the given task |
void |
takeTask(java.lang.String taskId,
java.lang.String userId)
taking this task will prevent all other candidates from taking and working on this task. |
| Method Detail |
|---|
Task newTask()
saveTask(Task) to persist the task. Only
after the invocation of saveTask(Task), the
Task.getId() property will be initialized.
Task newTask(java.lang.String parentTaskId)
Id is taken.
The returned task will be transient.
Use saveTask(Task) to persist the task.
java.lang.String saveTask(Task task)
Task getTask(java.lang.String taskId)
null.
void assignTask(java.lang.String taskId,
java.lang.String userId)
void takeTask(java.lang.String taskId,
java.lang.String userId)
assignTask(String, String) method:
taskService.assignTask(taskId, null);
JbpmException - if this task already has been taken.void completeTask(java.lang.String taskId)
void completeTask(java.lang.String taskId,
java.lang.String outcome)
void deleteTask(java.lang.String taskId)
ExecutionService.signalExecutionById(String)
is to be given explicitly.
void deleteTaskCascade(java.lang.String taskId)
void deleteTask(java.lang.String taskId,
java.lang.String reason)
HistoryActivityInstance.
If this task was created in the context of a process execution,
the execution remains active and the ExecutionService.signalExecutionById(String)
is to be given explicitly.
void addTaskParticipatingUser(java.lang.String taskId,
java.lang.String userId,
java.lang.String participationType)
participationType - specifies the kind of involvement of the participatingUser
in this task. see Participation for default constants.
void addTaskParticipatingGroup(java.lang.String taskId,
java.lang.String groupId,
java.lang.String participationType)
participationType - specifies the kind of involvement of the participatingUser
in this task. see Participation for default constants.java.util.List<Participation> getTaskParticipations(java.lang.String taskId)
void removeTaskParticipatingUser(java.lang.String taskId,
java.lang.String userId,
java.lang.String participationType)
participationType - specifies the kind of involvement of the participatingUser
in this task. see Participation for default constants.
void removeTaskParticipatingGroup(java.lang.String taskId,
java.lang.String groupId,
java.lang.String participationType)
participationType - specifies the kind of involvement of the participatingUser
in this task. see Participation for default constants.TaskQuery createTaskQuery()
java.util.List<Task> findPersonalTasks(java.lang.String userId)
java.util.List<Task> findGroupTasks(java.lang.String userId)
java.util.List<Task> getSubTasks(java.lang.String taskId)
HistoryComment addTaskComment(java.lang.String taskId,
java.lang.String message)
java.util.List<HistoryComment> getTaskComments(java.lang.String taskId)
HistoryComment addReplyComment(java.lang.String commentId,
java.lang.String message)
void deleteComment(java.lang.String commentId)
void setVariables(java.lang.String taskId,
java.util.Map<java.lang.String,java.lang.Object> variables)
java.lang.Object getVariable(java.lang.String taskId,
java.lang.String variableName)
java.util.Set<java.lang.String> getVariableNames(java.lang.String taskId)
java.util.Map<java.lang.String,java.lang.Object> getVariables(java.lang.String taskId,
java.util.Set<java.lang.String> variableNames)
java.util.Set<java.lang.String> getOutcomes(java.lang.String taskId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||