public class TasksImpl extends WorkflowRestImpl implements Tasks
activitiProcessEngine, authorityService, BPM_PACKAGE, deployWorkflowsInTenant, dictionaryService, excludeModelTypes, namespaceService, nodeService, tenantService| Constructor and Description |
|---|
TasksImpl() |
| Modifier and Type | Method and Description |
|---|---|
Item |
createItem(java.lang.String taskId,
Item item) |
void |
deleteItem(java.lang.String taskId,
java.lang.String itemId) |
void |
deleteTaskVariable(java.lang.String taskId,
java.lang.String variableName) |
protected java.lang.String |
getFormResourceKey(org.activiti.engine.task.Task task) |
Item |
getItem(java.lang.String taskId,
java.lang.String itemId) |
CollectionWithPagingInfo |
getItems(java.lang.String taskId,
Paging paging) |
protected org.alfresco.repo.workflow.WorkflowQNameConverter |
getQNameConverter() |
Task |
getTask(java.lang.String taskId) |
CollectionWithPagingInfo |
getTaskCandidates(java.lang.String taskId,
Paging paging) |
CollectionWithPagingInfo |
getTaskFormModel(java.lang.String taskId,
Paging paging) |
CollectionWithPagingInfo |
getTasks(Parameters parameters) |
CollectionWithPagingInfo |
getTasks(java.lang.String processId,
Parameters parameters) |
CollectionWithPagingInfo |
getTaskVariables(java.lang.String taskId,
Paging paging,
VariableScope scope) |
protected org.activiti.engine.history.HistoricTaskInstance |
getValidHistoricTask(java.lang.String taskId)
Get a valid
HistoricTaskInstance based on the given task id. |
protected org.activiti.engine.task.Task |
getValidTask(java.lang.String taskId)
Get a valid
Task based on the given task id. |
protected org.alfresco.repo.workflow.WorkflowObjectFactory |
getWorkflowFactory() |
void |
setMessageService(org.alfresco.repo.i18n.MessageService messageService) |
void |
setRestVariableHelper(RestVariableHelper restVariableHelper) |
Task |
update(java.lang.String taskId,
Task task,
Parameters parameters) |
protected boolean |
updateTaskProperties(java.util.List selectedProperties,
Task task,
org.activiti.engine.task.Task taskInstance) |
TaskVariable |
updateTaskVariable(java.lang.String taskId,
TaskVariable taskVariable) |
java.util.List |
updateTaskVariables(java.lang.String taskId,
java.util.List variables) |
protected TaskVariable |
updateVariableInTask(java.lang.String taskId,
org.activiti.engine.task.Task taskInstance,
TaskVariable taskVariable) |
createItemForNodeRef, createItemInProcess, deleteItemFromProcess, getCachedProcessDefinition, getFormModelElements, getItemFromProcess, getItemsFromProcess, getNodeRef, getParameter, getTypesToExclude, setActivitiProcessEngine, setAuthorityService, setDeployWorkflowsInTenant, setDictionaryService, setNamespaceService, setNodeService, setTenantService, validateIfUserAllowedToWorkWithProcesspublic void setRestVariableHelper(RestVariableHelper restVariableHelper)
public void setMessageService(org.alfresco.repo.i18n.MessageService messageService)
public CollectionWithPagingInfo getTasks(Parameters parameters)
public CollectionWithPagingInfo getTasks(java.lang.String processId, Parameters parameters)
public Task update(java.lang.String taskId, Task task, Parameters parameters)
public CollectionWithPagingInfo getTaskFormModel(java.lang.String taskId, Paging paging)
getTaskFormModel in interface Taskspublic CollectionWithPagingInfo getTaskVariables(java.lang.String taskId, Paging paging, VariableScope scope)
getTaskVariables in interface Taskspublic TaskVariable updateTaskVariable(java.lang.String taskId, TaskVariable taskVariable)
updateTaskVariable in interface Taskspublic java.util.List updateTaskVariables(java.lang.String taskId,
java.util.List variables)
updateTaskVariables in interface Tasksprotected TaskVariable updateVariableInTask(java.lang.String taskId, org.activiti.engine.task.Task taskInstance, TaskVariable taskVariable)
public void deleteTaskVariable(java.lang.String taskId,
java.lang.String variableName)
deleteTaskVariable in interface Taskspublic CollectionWithPagingInfo getTaskCandidates(java.lang.String taskId, Paging paging)
getTaskCandidates in interface Taskspublic Item createItem(java.lang.String taskId, Item item)
createItem in interface Taskspublic void deleteItem(java.lang.String taskId,
java.lang.String itemId)
deleteItem in interface Taskspublic Item getItem(java.lang.String taskId, java.lang.String itemId)
public CollectionWithPagingInfo getItems(java.lang.String taskId, Paging paging)
protected java.lang.String getFormResourceKey(org.activiti.engine.task.Task task)
protected boolean updateTaskProperties(java.util.List selectedProperties,
Task task,
org.activiti.engine.task.Task taskInstance)
protected org.activiti.engine.history.HistoricTaskInstance getValidHistoricTask(java.lang.String taskId)
HistoricTaskInstance based on the given task id. Checks if current logged
in user is assignee/owner/involved with the task. In case true was passed for "validIfClaimable",
the task is also valid if the current logged in user is a candidate for claiming the task.EntityNotFoundException - when the task was not foundPermissionDeniedException - when the current logged in user isn't allowed to access task.protected org.activiti.engine.task.Task getValidTask(java.lang.String taskId)
Task based on the given task id. Checks if current logged
in user is assignee/owner/involved with the task. In case true was passed for "validIfClaimable",
the task is also valid if the current logged in user is a candidate for claiming the task.EntityNotFoundException - when the task was not foundPermissionDeniedException - when the current logged in user isn't allowed to access task.protected org.alfresco.repo.workflow.WorkflowQNameConverter getQNameConverter()
protected org.alfresco.repo.workflow.WorkflowObjectFactory getWorkflowFactory()
Copyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.