Class TaskBaseResource

java.lang.Object
org.flowable.rest.service.api.runtime.task.TaskBaseResource
Direct Known Subclasses:
TaskAttachmentCollectionResource, TaskAttachmentContentResource, TaskAttachmentResource, TaskCollectionResource, TaskCommentCollectionResource, TaskCommentResource, TaskEventCollectionResource, TaskEventResource, TaskIdentityLinkCollectionResource, TaskIdentityLinkFamilyResource, TaskIdentityLinkResource, TaskQueryResource, TaskResource, TaskSubTaskCollectionResource, TaskVariableBaseResource

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

  • Constructor Details

    • TaskBaseResource

      public TaskBaseResource()
  • Method Details

    • getDelegationState

      protected DelegationState getDelegationState(String delegationState)
    • populateTaskFromRequest

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

      protected void populateTasksFromRequest(Collection<Task> taskList, BulkTasksRequest bulkTasksRequest)
    • getTasksFromIdList

      protected List<Task> getTasksFromIdList(Collection<String> taskIds)
    • getTasksFromQueryRequest

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

      protected void addTaskvariables(TaskQuery taskQuery, List<QueryVariable> variables)
    • addProcessvariables

      protected void addProcessvariables(TaskQuery taskQuery, List<QueryVariable> variables)
    • getTaskFromRequest

      protected 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 Task getTaskFromRequestWithoutAccessCheck(String taskId)
      Returns the Task that is requested without calling the access interceptor Throws the right exceptions when bad request was made or instance was not found.
    • getHistoricTaskFromRequest

      protected HistoricTaskInstance getHistoricTaskFromRequest(String taskId)
      Returns the HistoricTaskInstance that is requested and calls the access interceptor. Throws the right exceptions when bad request was made or instance was not found.
    • getHistoricTaskFromRequestWithoutAccessCheck

      protected HistoricTaskInstance getHistoricTaskFromRequestWithoutAccessCheck(String taskId)
      Returns the HistoricTaskInstance that is requested without calling the access interceptor Throws the right exceptions when bad request was made or instance was not found.