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
Shared logic for resources related to Tasks.
- Author:
- Tijs Rademakers
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CmmnHistoryService
protected CmmnRestApiInterceptor
protected CmmnRestResponseFactory
protected CmmnTaskService
-
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 Task
getTaskFromRequest
(String taskId) Returns theTask
that is requested and calls the access interceptor.protected Task
protected DataResponse<TaskResponse>
getTasksFromQueryRequest
(TaskQueryRequest request, Map<String, String> requestParams) getTasksFromRequest
(Collection<String> taskIds) 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 taskRequest) Populate the tasks based on the values that are present in the givenBulkTasksRequest
.
-
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
Populate the tasks based on the values that are present in the givenBulkTasksRequest
. -
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
-
getTasksFromRequest
-