Class TaskBaseResource

java.lang.Object
org.flowable.cmmn.rest.service.api.runtime.task.TaskBaseResource
Direct Known Subclasses:
TaskCollectionResource, TaskIdentityLinkCollectionResource, TaskIdentityLinkFamilyResource, TaskIdentityLinkResource, TaskQueryResource, TaskResource, TaskSubTaskCollectionResource, TaskVariableBaseResource

public class TaskBaseResource extends Object
Shared logic for resources related to Tasks.
Author:
Tijs Rademakers
  • Field Details

    • restResponseFactory

      @Autowired protected CmmnRestResponseFactory restResponseFactory
    • taskService

      @Autowired protected org.flowable.cmmn.api.CmmnTaskService taskService
    • historyService

      @Autowired protected org.flowable.cmmn.api.CmmnHistoryService historyService
    • restApiInterceptor

      @Autowired(required=false) protected CmmnRestApiInterceptor restApiInterceptor
  • Constructor Details

    • TaskBaseResource

      public TaskBaseResource()
  • Method Details

    • getDelegationState

      protected org.flowable.task.api.DelegationState getDelegationState(String delegationState)
    • populateTaskFromRequest

      protected void populateTaskFromRequest(org.flowable.task.api.Task task, TaskRequest taskRequest)
      Populate the task based on the values that are present in the given TaskRequest.
    • populateTasksFromRequest

      protected void populateTasksFromRequest(Collection<org.flowable.task.api.Task> taskList, BulkTasksRequest taskRequest)
      Populate the tasks based on the values that are present in the given BulkTasksRequest.
    • getTasksFromQueryRequest

      protected DataResponse<TaskResponse> getTasksFromQueryRequest(TaskQueryRequest request, Map<String,String> requestParams)
    • addTaskvariables

      protected void addTaskvariables(org.flowable.task.api.TaskQuery taskQuery, List<QueryVariable> variables)
    • addProcessvariables

      protected void addProcessvariables(org.flowable.task.api.TaskQuery taskQuery, List<QueryVariable> variables)
    • getTaskFromRequest

      protected org.flowable.task.api.Task getTaskFromRequest(String taskId)
      Returns the Task that is requested and calls the access interceptor. Throws the right exceptions when bad request was made or instance was not found.
    • getTaskFromRequestWithoutAccessCheck

      protected org.flowable.task.api.Task getTaskFromRequestWithoutAccessCheck(String taskId)
    • getTasksFromRequest

      protected List<org.flowable.task.api.Task> getTasksFromRequest(Collection<String> taskIds)