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,
Boolean includeProcessVariables,
Boolean includeTaskVariables,
Map<String,Object> processVariables,
Map<String,Object> taskVariables,
Map<String,org.alfresco.service.cmr.dictionary.TypeDefinition> definitionTypeMap) |
protected Object |
convertAssociationDefinitionValue(org.alfresco.service.cmr.dictionary.AssociationDefinition associationDef,
String variableName,
Object variableValue) |
protected TaskVariable |
convertToTypedVariable(TaskVariable taskVariable,
org.activiti.engine.task.Task taskInstance) |
Item |
createItem(String taskId,
Item item) |
void |
deleteItem(String taskId,
String itemId) |
void |
deleteTaskVariable(String taskId,
String variableName) |
protected String |
getFormResourceKey(org.activiti.engine.task.Task task) |
Item |
getItem(String taskId,
String itemId) |
CollectionWithPagingInfo<Item> |
getItems(String taskId,
Paging paging) |
protected org.alfresco.service.cmr.repository.NodeRef |
getPersonNodeRef(String name) |
protected WorkflowQNameConverter |
getQNameConverter() |
Task |
getTask(String taskId) |
CollectionWithPagingInfo<TaskCandidate> |
getTaskCandidates(String taskId,
Paging paging) |
CollectionWithPagingInfo<FormModelElement> |
getTaskFormModel(String taskId,
Paging paging) |
CollectionWithPagingInfo<Task> |
getTasks(Parameters parameters) |
CollectionWithPagingInfo<Task> |
getTasks(String processId,
Parameters parameters) |
CollectionWithPagingInfo<TaskVariable> |
getTaskVariables(String taskId,
Paging paging,
VariableScope scope) |
int |
getTaskVariablesLimit() |
protected org.activiti.engine.history.HistoricTaskInstance |
getValidHistoricTask(String taskId)
Get a valid
HistoricTaskInstance based on the given task id. |
protected org.activiti.engine.task.Task |
getValidTask(String taskId)
Get a valid
Task based on the given task id. |
protected WorkflowObjectFactory |
getWorkflowFactory() |
void |
setMessageService(MessageService messageService) |
void |
setPersonService(PersonService personService) |
void |
setPropertyConverter(ActivitiPropertyConverter propertyConverter) |
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) |
void |
setTaskVariablesLimit(int taskVariablesLimit) |
Task |
update(String taskId,
Task task,
Parameters parameters) |
protected boolean |
updateTaskProperties(List<String> selectedProperties,
Task task,
org.activiti.engine.task.Task taskInstance) |
TaskVariable |
updateTaskVariable(String taskId,
TaskVariable taskVariable) |
List<TaskVariable> |
updateTaskVariables(String taskId,
List<TaskVariable> variables) |
protected TaskVariable |
updateVariableInTask(org.activiti.engine.task.Task taskInstance,
TaskVariable taskVariable) |
createItemForNodeRef, createItemInProcess, deleteItemFromProcess, getFormModelElements, getItemFromProcess, getItemsFromProcess, getNodeRef, getParameter, getTypesToExclude, setActivitiProcessEngine, setActivitiWorkflowEngine, setAuthorityService, setDeployWorkflowsInTenant, setDictionaryService, setNamespaceService, setNodeService, setTenantService, validateIfUserAllowedToWorkWithProcess
public void setPropertyConverter(ActivitiPropertyConverter propertyConverter)
public void setRestVariableHelper(RestVariableHelper restVariableHelper)
public void setMessageService(MessageService messageService)
public void setPersonService(PersonService personService)
public int getTaskVariablesLimit()
public void setTaskVariablesLimit(int taskVariablesLimit)
public CollectionWithPagingInfo<Task> getTasks(Parameters parameters)
protected void addVariables(Task task, Boolean includeProcessVariables, Boolean includeTaskVariables, Map<String,Object> processVariables, Map<String,Object> taskVariables, Map<String,org.alfresco.service.cmr.dictionary.TypeDefinition> definitionTypeMap)
public CollectionWithPagingInfo<Task> getTasks(String processId, Parameters parameters)
public Task update(String taskId, Task task, Parameters parameters)
public CollectionWithPagingInfo<FormModelElement> getTaskFormModel(String taskId, Paging paging)
getTaskFormModel
in interface Tasks
public CollectionWithPagingInfo<TaskVariable> getTaskVariables(String taskId, Paging paging, VariableScope scope)
getTaskVariables
in interface Tasks
public TaskVariable updateTaskVariable(String taskId, TaskVariable taskVariable)
updateTaskVariable
in interface Tasks
public List<TaskVariable> updateTaskVariables(String taskId, List<TaskVariable> 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(String taskId, String variableName)
deleteTaskVariable
in interface Tasks
public CollectionWithPagingInfo<TaskCandidate> getTaskCandidates(String taskId, Paging paging)
getTaskCandidates
in interface Tasks
public Item createItem(String taskId, Item item)
createItem
in interface Tasks
public void deleteItem(String taskId, String itemId)
deleteItem
in interface Tasks
public CollectionWithPagingInfo<Item> getItems(String taskId, Paging paging)
protected String getFormResourceKey(org.activiti.engine.task.Task task)
protected boolean updateTaskProperties(List<String> selectedProperties, Task task, org.activiti.engine.task.Task taskInstance)
protected org.activiti.engine.history.HistoricTaskInstance getValidHistoricTask(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(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 Object convertAssociationDefinitionValue(org.alfresco.service.cmr.dictionary.AssociationDefinition associationDef, String variableName, Object variableValue)
protected org.alfresco.service.cmr.repository.NodeRef getPersonNodeRef(String name)
protected WorkflowQNameConverter getQNameConverter()
protected WorkflowObjectFactory getWorkflowFactory()
Copyright © 2005–2017 Alfresco Software. All rights reserved.