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 |
---|---|
protected void |
addVariables(Task task,
java.lang.Boolean includeProcessVariables,
java.lang.Boolean includeTaskVariables,
java.util.Map processVariables,
java.util.Map taskVariables,
java.util.Map definitionTypeMap) |
protected java.lang.Object |
convertAssociationDefinitionValue(org.alfresco.service.cmr.dictionary.AssociationDefinition associationDef,
java.lang.String variableName,
java.lang.Object variableValue) |
protected TaskVariable |
convertToTypedVariable(TaskVariable taskVariable,
org.activiti.engine.task.Task taskInstance) |
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.service.cmr.repository.NodeRef |
getPersonNodeRef(java.lang.String name) |
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 |
setPersonService(org.alfresco.service.cmr.security.PersonService personService) |
void |
setRestVariableHelper(RestVariableHelper restVariableHelper) |
protected void |
setSorting(org.activiti.engine.history.HistoricTaskInstanceQuery query,
SortColumn sortColumn) |
protected void |
setSorting(org.activiti.engine.task.TaskQuery query,
SortColumn sortColumn) |
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(org.activiti.engine.task.Task taskInstance,
TaskVariable taskVariable) |
createItemForNodeRef, createItemInProcess, deleteItemFromProcess, getFormModelElements, getItemFromProcess, getItemsFromProcess, getNodeRef, getParameter, getTypesToExclude, setActivitiProcessEngine, setAuthorityService, setDeployWorkflowsInTenant, setDictionaryService, setNamespaceService, setNodeService, setTenantService, validateIfUserAllowedToWorkWithProcess
public void setRestVariableHelper(RestVariableHelper restVariableHelper)
public void setMessageService(org.alfresco.repo.i18n.MessageService messageService)
public void setPersonService(org.alfresco.service.cmr.security.PersonService personService)
public CollectionWithPagingInfo getTasks(Parameters parameters)
protected void addVariables(Task task, java.lang.Boolean includeProcessVariables, java.lang.Boolean includeTaskVariables, java.util.Map processVariables, java.util.Map taskVariables, java.util.Map definitionTypeMap)
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 Tasks
public CollectionWithPagingInfo getTaskVariables(java.lang.String taskId, Paging paging, VariableScope scope)
getTaskVariables
in interface Tasks
public TaskVariable updateTaskVariable(java.lang.String taskId, TaskVariable taskVariable)
updateTaskVariable
in interface Tasks
public java.util.List updateTaskVariables(java.lang.String taskId, java.util.List variables)
updateTaskVariables
in interface Tasks
protected TaskVariable updateVariableInTask(org.activiti.engine.task.Task taskInstance, TaskVariable taskVariable)
protected TaskVariable convertToTypedVariable(TaskVariable taskVariable, org.activiti.engine.task.Task taskInstance)
public void deleteTaskVariable(java.lang.String taskId, java.lang.String variableName)
deleteTaskVariable
in interface Tasks
public CollectionWithPagingInfo getTaskCandidates(java.lang.String taskId, Paging paging)
getTaskCandidates
in interface Tasks
public Item createItem(java.lang.String taskId, Item item)
createItem
in interface Tasks
public void deleteItem(java.lang.String taskId, java.lang.String itemId)
deleteItem
in interface Tasks
public 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 void setSorting(org.activiti.engine.task.TaskQuery query, SortColumn sortColumn)
protected void setSorting(org.activiti.engine.history.HistoricTaskInstanceQuery query, SortColumn sortColumn)
protected java.lang.Object convertAssociationDefinitionValue(org.alfresco.service.cmr.dictionary.AssociationDefinition associationDef, java.lang.String variableName, java.lang.Object variableValue)
protected org.alfresco.service.cmr.repository.NodeRef getPersonNodeRef(java.lang.String name)
protected org.alfresco.repo.workflow.WorkflowQNameConverter getQNameConverter()
protected org.alfresco.repo.workflow.WorkflowObjectFactory getWorkflowFactory()
Copyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.