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 voidaddVariables(Task task, Boolean includeProcessVariables, Boolean includeTaskVariables, Map<String, Object> processVariables, Map<String, Object> taskVariables, Map<String, org.alfresco.service.cmr.dictionary.TypeDefinition> definitionTypeMap) protected ObjectconvertAssociationDefinitionValue(org.alfresco.service.cmr.dictionary.AssociationDefinition associationDef, String variableName, Object variableValue) protected TaskVariableconvertToTypedVariable(TaskVariable taskVariable, org.activiti.engine.task.Task taskInstance) createItem(String taskId, Item item) voiddeleteItem(String taskId, String itemId) voiddeleteTaskVariable(String taskId, String variableName) protected StringgetFormResourceKey(org.activiti.engine.task.Task task) protected NodeRefgetPersonNodeRef(String name) protected WorkflowQNameConvertergetTaskCandidates(String taskId, Paging paging) getTaskFormModel(String taskId, Paging paging) getTasks(String processId, Parameters parameters) getTasks(Parameters parameters) getTaskVariables(String taskId, Paging paging, VariableScope scope) intprotected org.activiti.engine.history.HistoricTaskInstancegetValidHistoricTask(String taskId) Get a validHistoricTaskInstancebased on the given task id.protected org.activiti.engine.task.TaskgetValidTask(String taskId) Get a validTaskbased on the given task id.protected WorkflowObjectFactoryvoidsetMessageService(MessageService messageService) voidsetPersonService(PersonService personService) voidsetPropertyConverter(ActivitiPropertyConverter propertyConverter) voidsetRestVariableHelper(RestVariableHelper restVariableHelper) protected voidsetSorting(org.activiti.engine.history.HistoricTaskInstanceQuery query, SortColumn sortColumn) protected voidsetSorting(org.activiti.engine.task.TaskQuery query, SortColumn sortColumn) voidsetTaskVariablesLimit(int taskVariablesLimit) update(String taskId, Task task, Parameters parameters) protected booleanupdateTaskProperties(List<String> selectedProperties, Task task, org.activiti.engine.task.Task taskInstance) updateTaskVariable(String taskId, TaskVariable taskVariable) updateTaskVariables(String taskId, List<TaskVariable> variables) protected TaskVariableupdateVariableInTask(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:
getTaskFormModelin interfaceTasks
-
getTaskVariables
public CollectionWithPagingInfo<TaskVariable> getTaskVariables(String taskId, Paging paging, VariableScope scope) - Specified by:
getTaskVariablesin interfaceTasks
-
updateTaskVariable
- Specified by:
updateTaskVariablein interfaceTasks
-
updateTaskVariables
- Specified by:
updateTaskVariablesin 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:
deleteTaskVariablein interfaceTasks
-
getTaskCandidates
- Specified by:
getTaskCandidatesin interfaceTasks
-
createItem
- Specified by:
createItemin interfaceTasks
-
deleteItem
- Specified by:
deleteItemin 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 validHistoricTaskInstancebased 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 validTaskbased 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
-