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 Summary
Fields Modifier and Type Field Description protected org.flowable.cmmn.api.CmmnHistoryServicehistoryServiceprotected CmmnRestApiInterceptorrestApiInterceptorprotected CmmnRestResponseFactoryrestResponseFactoryprotected org.flowable.cmmn.api.CmmnTaskServicetaskService
-
Constructor Summary
Constructors Constructor Description TaskBaseResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddProcessvariables(org.flowable.task.api.TaskQuery taskQuery, List<QueryVariable> variables)protected voidaddTaskvariables(org.flowable.task.api.TaskQuery taskQuery, List<QueryVariable> variables)protected org.flowable.task.api.DelegationStategetDelegationState(String delegationState)protected org.flowable.task.api.TaskgetTaskFromRequest(String taskId)Returns theTaskthat is requested and calls the access interceptor.protected org.flowable.task.api.TaskgetTaskFromRequestWithoutAccessCheck(String taskId)protected DataResponse<TaskResponse>getTasksFromQueryRequest(TaskQueryRequest request, Map<String,String> requestParams)protected List<org.flowable.task.api.Task>getTasksFromRequest(Collection<String> taskIds)protected voidpopulateTaskFromRequest(org.flowable.task.api.Task task, TaskRequest taskRequest)Populate the task based on the values that are present in the givenTaskRequest.protected voidpopulateTasksFromRequest(Collection<org.flowable.task.api.Task> taskList, BulkTasksRequest taskRequest)Populate the tasks based on the values that are present in the givenBulkTasksRequest.
-
-
-
Field Detail
-
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
-
-
Method Detail
-
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 givenTaskRequest.
-
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 givenBulkTasksRequest.
-
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 theTaskthat 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)
-
-