public interface TaskComponent
| Modifier and Type | Method and Description |
|---|---|
WorkflowTask |
endTask(java.lang.String taskId,
java.lang.String transitionId)
End the Task (i.e.
|
java.util.List |
getAssignedTasks(java.lang.String authority,
WorkflowTaskState state)
Gets all tasks assigned to the specified authority
|
java.util.List |
getPooledTasks(java.util.List authorities)
Gets the pooled tasks available to the specified authority
|
WorkflowTask |
getStartTask(java.lang.String workflowInstanceId)
Gets all active timers for the specified workflow
|
java.util.List |
getStartTasks(java.util.List workflowInstanceIds,
boolean sameSession)
Gets all start tasks for the specified workflow
|
WorkflowTask |
getTaskById(java.lang.String taskId)
Gets a Task by unique Id
|
java.util.List |
queryTasks(WorkflowTaskQuery query)
Deprecated.
Use overloaded method with the
sameSession parameter
(this method defaults the parameter to false). |
java.util.List |
queryTasks(WorkflowTaskQuery query,
boolean sameSession)
Query for tasks
|
WorkflowTask |
startTask(java.lang.String taskId)
Start the specified Task
Note: this is an optional task operation.
|
WorkflowTask |
suspendTask(java.lang.String taskId)
Suspend the specified Task
|
WorkflowTask |
updateTask(java.lang.String taskId,
java.util.Map properties,
java.util.Map add,
java.util.Map remove)
Update the Properties and Associations of a Task
|
WorkflowTask getTaskById(java.lang.String taskId)
taskId - the task idjava.util.List getAssignedTasks(java.lang.String authority,
WorkflowTaskState state)
authority - the authoritystate - filter by specified workflow task statejava.util.List getPooledTasks(java.util.List authorities)
authority - the authorityjava.util.List queryTasks(WorkflowTaskQuery query)
sameSession parameter
(this method defaults the parameter to false).java.util.List queryTasks(WorkflowTaskQuery query, boolean sameSession)
query - the filter by which tasks are queriedsameSession - indicates that the returned WorkflowTask elements will be used in
the same session. If true, the returned List will be a lazy loaded list
providing greater performance.WorkflowTask updateTask(java.lang.String taskId, java.util.Map properties, java.util.Map add, java.util.Map remove)
taskId - the task id to updateproperties - the map of properties to set on the task (or null, if none to set)add - the map of items to associate with the task (or null, if none to add)remove - the map of items to dis-associate with the task (or null, if none to remove)WorkflowTask startTask(java.lang.String taskId)
taskId - the task to startWorkflowTask suspendTask(java.lang.String taskId)
taskId - WorkflowTask endTask(java.lang.String taskId, java.lang.String transitionId)
taskId - the task id to endtransition - the task transition to take on completion (or null, for the default transition)WorkflowTask getStartTask(java.lang.String workflowInstanceId)
java.util.List getStartTasks(java.util.List workflowInstanceIds,
boolean sameSession)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.