Class TasksImpl
java.lang.Object
org.alfresco.rest.workflow.api.impl.WorkflowRestImpl
org.alfresco.rest.workflow.api.impl.TasksImpl
- All Implemented Interfaces:
Tasks
-
Field Summary
Fields inherited from class org.alfresco.rest.workflow.api.impl.WorkflowRestImpl
activitiProcessEngine, authorityService, BPM_PACKAGE, deployWorkflowsInTenant, dictionaryService, excludeModelTypes, namespaceService, nodeService, tenantService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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) 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) protected NodeRef
getPersonNodeRef
(String name) protected WorkflowQNameConverter
getTaskCandidates
(String taskId, Paging paging) getTaskFormModel
(String taskId, Paging paging) getTasks
(String processId, Parameters parameters) getTasks
(Parameters parameters) getTaskVariables
(String taskId, Paging paging, VariableScope scope) int
protected org.activiti.engine.history.HistoricTaskInstance
getValidHistoricTask
(String taskId) Get a validHistoricTaskInstance
based on the given task id.protected org.activiti.engine.task.Task
getValidTask
(String taskId) Get a validTask
based on the given task id.protected WorkflowObjectFactory
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) update
(String taskId, Task task, Parameters parameters) protected boolean
updateTaskProperties
(List<String> selectedProperties, Task task, org.activiti.engine.task.Task taskInstance) updateTaskVariable
(String taskId, TaskVariable taskVariable) updateTaskVariables
(String taskId, List<TaskVariable> variables) protected TaskVariable
updateVariableInTask
(org.activiti.engine.task.Task taskInstance, TaskVariable taskVariable) Methods inherited from class org.alfresco.rest.workflow.api.impl.WorkflowRestImpl
createItemForNodeRef, createItemInProcess, deleteItemFromProcess, getFormModelElements, getItemFromProcess, getItemsFromProcess, getNodeRef, getParameter, getTypesToExclude, setActivitiProcessEngine, setActivitiWorkflowEngine, setAuthorityService, setDeployWorkflowsInTenant, setDictionaryService, setNamespaceService, setNodeService, setTenantService, validateIfUserAllowedToWorkWithProcess
-
Constructor Details
-
TasksImpl
public TasksImpl()
-
-
Method Details
-
setPropertyConverter
-
setRestVariableHelper
-
setMessageService
-
setPersonService
-
getTaskVariablesLimit
public int getTaskVariablesLimit() -
setTaskVariablesLimit
public void setTaskVariablesLimit(int taskVariablesLimit) -
getTasks
-
addVariables
-
getTasks
-
getTask
-
update
-
getTaskFormModel
- Specified by:
getTaskFormModel
in interfaceTasks
-
getTaskVariables
public CollectionWithPagingInfo<TaskVariable> getTaskVariables(String taskId, Paging paging, VariableScope scope) - Specified by:
getTaskVariables
in interfaceTasks
-
updateTaskVariable
- Specified by:
updateTaskVariable
in interfaceTasks
-
updateTaskVariables
- Specified by:
updateTaskVariables
in interfaceTasks
-
updateVariableInTask
protected TaskVariable updateVariableInTask(org.activiti.engine.task.Task taskInstance, TaskVariable taskVariable) -
convertToTypedVariable
protected TaskVariable convertToTypedVariable(TaskVariable taskVariable, org.activiti.engine.task.Task taskInstance) -
deleteTaskVariable
- Specified by:
deleteTaskVariable
in interfaceTasks
-
getTaskCandidates
- Specified by:
getTaskCandidates
in interfaceTasks
-
createItem
- Specified by:
createItem
in interfaceTasks
-
deleteItem
- Specified by:
deleteItem
in interfaceTasks
-
getItem
-
getItems
-
getFormResourceKey
-
updateTaskProperties
protected boolean updateTaskProperties(List<String> selectedProperties, Task task, org.activiti.engine.task.Task taskInstance) - Returns:
- true, if at least one task property has been changed based on the given parameters.
-
getValidHistoricTask
Get a validHistoricTaskInstance
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.- Throws:
EntityNotFoundException
- when the task was not foundPermissionDeniedException
- when the current logged in user isn't allowed to access task.
-
getValidTask
Get a validTask
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.- Throws:
EntityNotFoundException
- when the task was not foundPermissionDeniedException
- when the current logged in user isn't allowed to access task.
-
setSorting
-
setSorting
protected void setSorting(org.activiti.engine.history.HistoricTaskInstanceQuery query, SortColumn sortColumn) -
convertAssociationDefinitionValue
-
getPersonNodeRef
-
getQNameConverter
-
getWorkflowFactory
-