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
Shared logic for resources related to Tasks.
- Author:
- Frederik Heremans
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected HistoryService
protected BpmnRestApiInterceptor
protected RestResponseFactory
protected TaskService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addProcessvariables
(TaskQuery taskQuery, List<QueryVariable> variables) protected void
addTaskvariables
(TaskQuery taskQuery, List<QueryVariable> variables) protected DelegationState
getDelegationState
(String delegationState) protected HistoricTaskInstance
getHistoricTaskFromRequest
(String taskId) Returns theHistoricTaskInstance
that is requested and calls the access interceptor.protected HistoricTaskInstance
Returns theHistoricTaskInstance
that is requested without calling the access interceptor Throws the right exceptions when bad request was made or instance was not found.protected Task
getTaskFromRequest
(String taskId) Returns theTask
that is requested and calls the access interceptor.protected Task
Returns theTask
that is requested without calling the access interceptor Throws the right exceptions when bad request was made or instance was not found.getTasksFromIdList
(Collection<String> taskIds) protected DataResponse<TaskResponse>
getTasksFromQueryRequest
(TaskQueryRequest request, Map<String, String> requestParams) protected void
populateTaskFromRequest
(Task task, TaskRequest taskRequest) Populate the task based on the values that are present in the givenTaskRequest
.protected void
populateTasksFromRequest
(Collection<Task> taskList, BulkTasksRequest bulkTasksRequest)
-
Field Details
-
restResponseFactory
-
taskService
-
historyService
-
restApiInterceptor
-
-
Constructor Details
-
TaskBaseResource
public TaskBaseResource()
-
-
Method Details
-
getDelegationState
-
populateTaskFromRequest
Populate the task based on the values that are present in the givenTaskRequest
. -
populateTasksFromRequest
protected void populateTasksFromRequest(Collection<Task> taskList, BulkTasksRequest bulkTasksRequest) -
getTasksFromIdList
-
getTasksFromQueryRequest
protected DataResponse<TaskResponse> getTasksFromQueryRequest(TaskQueryRequest request, Map<String, String> requestParams) -
addTaskvariables
-
addProcessvariables
-
getTaskFromRequest
Returns theTask
that is requested and calls the access interceptor. Throws the right exceptions when bad request was made or instance was not found. -
getTaskFromRequestWithoutAccessCheck
Returns theTask
that is requested without calling the access interceptor Throws the right exceptions when bad request was made or instance was not found. -
getHistoricTaskFromRequest
Returns theHistoricTaskInstance
that is requested and calls the access interceptor. Throws the right exceptions when bad request was made or instance was not found. -
getHistoricTaskFromRequestWithoutAccessCheck
Returns theHistoricTaskInstance
that is requested without calling the access interceptor Throws the right exceptions when bad request was made or instance was not found.
-