|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TaskService
Human task management facility.
Method Summary | |
---|---|
Comment |
addReplyComment(long commentDbid,
java.lang.String message)
add a reply to another comment |
Comment |
addTaskComment(long taskDbid,
java.lang.String message)
add a comment to a task |
void |
addTaskParticipatingGroup(long taskDbid,
java.lang.String groupId,
java.lang.String participationType)
add a role to a given task. |
void |
addTaskParticipatingUser(long taskDbid,
java.lang.String userId,
java.lang.String participationType)
add a role to a given task. |
void |
assignTask(long taskDbid,
java.lang.String userId)
assigns this task to the given assignee. |
void |
cancelTask(long taskDbid)
Deletes the task. |
void |
cancelTask(long taskDbid,
java.lang.String reason)
Deletes the task providing an indication of the reason. |
void |
completeTask(long taskDbid)
Deletes this task, marks the related history task as completed. |
void |
completeTask(long taskDbid,
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(long commentDbid)
delete a comment. |
java.util.List<Task> |
findAssignedTasks(java.lang.String userId)
list of tasks that are assigned to the given user. |
java.util.List<Task> |
findTakableTasks(java.lang.String userId)
list of tasks that can be taken by the given user. |
java.util.List<Task> |
getSubTasks(long taskDbid)
get the subtasks for this task. |
Task |
getTask(long taskDbid)
Retrieves the task with the given identifier from persistent storage. |
java.util.List<Comment> |
getTaskComments(long taskDbid)
get the list of comments made to a task. |
java.util.List<Participation> |
getTaskParticipations(long taskDbid)
get roles related to a given task. |
java.lang.Object |
getVariable(long taskDbid,
java.lang.String variableName)
retrieves a variable |
java.util.Set<java.lang.String> |
getVariableNames(long taskDbid)
all the variables visible in the given task |
java.util.Map<java.lang.String,java.lang.Object> |
getVariables(long taskDbid,
java.util.Set<java.lang.String> variableNames)
retrieves a map of variables |
Task |
newTask()
Creates a task. |
Task |
newTask(long parentTaskDbid)
Creates a new subtask for the given task. |
void |
removeTaskParticipatingGroup(long taskDbid,
java.lang.String groupId,
java.lang.String participationType)
removes a role to a given task. |
void |
removeTaskParticipatingUser(long taskDbid,
java.lang.String userId,
java.lang.String participationType)
removes a role to a given task. |
long |
saveTask(Task task)
Saves the given task to persistent storage. |
void |
setVariable(long taskDbid,
java.lang.String name,
java.lang.Object value)
creates or overwrites a variable value on the given task |
void |
setVariables(long taskDbid,
java.util.Map<java.lang.String,java.lang.Object> variables)
creates or overwrites the variable values on the given task |
void |
takeTask(long taskDbid,
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.getDbid()
property will be initialized.
Task newTask(long parentTaskDbid)
dbid
is taken.
The returned task will be transient.
Use saveTask(Task)
to persist the task.
long saveTask(Task task)
Task getTask(long taskDbid)
null
.
void assignTask(long taskDbid, java.lang.String userId)
void takeTask(long taskDbid, java.lang.String userId)
JbpmException
- if this task already has been taken.void completeTask(long taskDbid)
void completeTask(long taskDbid, java.lang.String outcome)
void cancelTask(long taskDbid)
void cancelTask(long taskDbid, java.lang.String reason)
void addTaskParticipatingUser(long taskDbid, java.lang.String userId, java.lang.String participationType)
participation
- specifies the kind of involvement of the participatingUser
in this task. see Participation
for default constants.void addTaskParticipatingGroup(long taskDbid, java.lang.String groupId, java.lang.String participationType)
participation
- specifies the kind of involvement of the participatingUser
in this task. see Participation
for default constants.java.util.List<Participation> getTaskParticipations(long taskDbid)
void removeTaskParticipatingUser(long taskDbid, java.lang.String userId, java.lang.String participationType)
participation
- specifies the kind of involvement of the participatingUser
in this task. see Participation
for default constants.void removeTaskParticipatingGroup(long taskDbid, java.lang.String groupId, java.lang.String participationType)
participation
- specifies the kind of involvement of the participatingUser
in this task. see Participation
for default constants.TaskQuery createTaskQuery()
java.util.List<Task> findAssignedTasks(java.lang.String userId)
java.util.List<Task> findTakableTasks(java.lang.String userId)
java.util.List<Task> getSubTasks(long taskDbid)
Comment addTaskComment(long taskDbid, java.lang.String message)
java.util.List<Comment> getTaskComments(long taskDbid)
Comment addReplyComment(long commentDbid, java.lang.String message)
void deleteComment(long commentDbid)
void setVariable(long taskDbid, java.lang.String name, java.lang.Object value)
void setVariables(long taskDbid, java.util.Map<java.lang.String,java.lang.Object> variables)
java.lang.Object getVariable(long taskDbid, java.lang.String variableName)
java.util.Set<java.lang.String> getVariableNames(long taskDbid)
java.util.Map<java.lang.String,java.lang.Object> getVariables(long taskDbid, java.util.Set<java.lang.String> variableNames)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |