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 Summary
Fields Modifier and Type Field Description protected HistoryServicehistoryServiceprotected BpmnRestApiInterceptorrestApiInterceptorprotected RestResponseFactoryrestResponseFactoryprotected TaskServicetaskService
-
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.history.HistoricTaskInstancegetHistoricTaskFromRequest(String taskId)Returns theHistoricTaskInstancethat is requested and calls the access interceptor.protected org.flowable.task.api.history.HistoricTaskInstancegetHistoricTaskFromRequestWithoutAccessCheck(String taskId)Returns theHistoricTaskInstancethat is requested without calling the access interceptor Throws the right exceptions when bad request was made or instance was not found.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)Returns theTaskthat is requested without calling the access interceptor Throws the right exceptions when bad request was made or instance was not found.protected List<org.flowable.task.api.Task>getTasksFromIdList(Collection<String> taskIds)protected DataResponse<TaskResponse>getTasksFromQueryRequest(TaskQueryRequest request, Map<String,String> requestParams)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 bulkTasksRequest)
-
-
-
Field Detail
-
restResponseFactory
@Autowired protected RestResponseFactory restResponseFactory
-
taskService
@Autowired protected TaskService taskService
-
historyService
@Autowired protected HistoryService historyService
-
restApiInterceptor
@Autowired(required=false) protected BpmnRestApiInterceptor 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 bulkTasksRequest)
-
getTasksFromIdList
protected List<org.flowable.task.api.Task> getTasksFromIdList(Collection<String> taskIds)
-
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)
Returns theTaskthat is requested without calling the access interceptor Throws the right exceptions when bad request was made or instance was not found.
-
getHistoricTaskFromRequest
protected org.flowable.task.api.history.HistoricTaskInstance getHistoricTaskFromRequest(String taskId)
Returns theHistoricTaskInstancethat is requested and calls the access interceptor. Throws the right exceptions when bad request was made or instance was not found.
-
getHistoricTaskFromRequestWithoutAccessCheck
protected org.flowable.task.api.history.HistoricTaskInstance getHistoricTaskFromRequestWithoutAccessCheck(String taskId)
Returns theHistoricTaskInstancethat is requested without calling the access interceptor Throws the right exceptions when bad request was made or instance was not found.
-
-