Class WorkflowTaskService
java.lang.Object
com.eurodyn.qlack.fuse.workflow.service.WorkflowTaskService
This service provides methods related to the tasks of Activiti.
- Author:
- European Dynamics
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
completeTask
(String taskId) Given the id of a task, it completes the related task.getTasksByProcessInstanceId
(String processInstanceId) Given the id of a started process instance, a list of all the tasks are returned.
-
Constructor Details
-
WorkflowTaskService
@Autowired public WorkflowTaskService(org.activiti.engine.TaskService taskService)
-
-
Method Details
-
getTasksByProcessInstanceId
Given the id of a started process instance, a list of all the tasks are returned.- Parameters:
processInstanceId
- the id of the started process instance- Returns:
- a list containing the information of the tasks
-
completeTask
Given the id of a task, it completes the related task. If no task is found, an exception is thrown.- Parameters:
taskId
- the id of the task
-