Class WorkflowTaskService

java.lang.Object
com.eurodyn.qlack.fuse.workflow.service.WorkflowTaskService

@Service @Transactional public class WorkflowTaskService extends Object
This service provides methods related to the tasks of Activiti.
Author:
European Dynamics
  • Constructor Details

    • WorkflowTaskService

      @Autowired public WorkflowTaskService(org.activiti.engine.TaskService taskService)
  • Method Details

    • getTasksByProcessInstanceId

      public List<TaskDTO> getTasksByProcessInstanceId(String processInstanceId)
      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

      public void completeTask(String taskId)
      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