Class BaseProcessInstanceResource
- java.lang.Object
-
- org.flowable.rest.service.api.runtime.process.BaseProcessInstanceResource
-
- Direct Known Subclasses:
ProcessInstanceCollectionResource,ProcessInstanceDiagramResource,ProcessInstanceIdentityLinkCollectionResource,ProcessInstanceIdentityLinkResource,ProcessInstanceQueryResource,ProcessInstanceResource
public class BaseProcessInstanceResource extends Object
- Author:
- Frederik Heremans
-
-
Field Summary
Fields Modifier and Type Field Description protected RepositoryServicerepositoryServiceprotected BpmnRestApiInterceptorrestApiInterceptorprotected RestResponseFactoryrestResponseFactoryprotected RuntimeServiceruntimeService
-
Constructor Summary
Constructors Constructor Description BaseProcessInstanceResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddVariables(ProcessInstanceQuery processInstanceQuery, List<QueryVariable> variables)protected ProcessInstancegetProcessInstanceFromRequest(String processInstanceId)Returns theProcessInstancethat is requested and calls the access interceptor.protected ProcessInstancegetProcessInstanceFromRequestWithoutAccessCheck(String processInstanceId)Returns theProcessInstancethat is requested without calling the access interceptor Throws the right exceptions when bad request was made or instance was not found.protected DataResponse<ProcessInstanceResponse>getQueryResponse(ProcessInstanceQueryRequest queryRequest, Map<String,String> requestParams)
-
-
-
Field Detail
-
restResponseFactory
@Autowired protected RestResponseFactory restResponseFactory
-
runtimeService
@Autowired protected RuntimeService runtimeService
-
repositoryService
@Autowired protected RepositoryService repositoryService
-
restApiInterceptor
@Autowired(required=false) protected BpmnRestApiInterceptor restApiInterceptor
-
-
Method Detail
-
getQueryResponse
protected DataResponse<ProcessInstanceResponse> getQueryResponse(ProcessInstanceQueryRequest queryRequest, Map<String,String> requestParams)
-
addVariables
protected void addVariables(ProcessInstanceQuery processInstanceQuery, List<QueryVariable> variables)
-
getProcessInstanceFromRequest
protected ProcessInstance getProcessInstanceFromRequest(String processInstanceId)
Returns theProcessInstancethat is requested and calls the access interceptor. Throws the right exceptions when bad request was made or instance was not found.
-
getProcessInstanceFromRequestWithoutAccessCheck
protected ProcessInstance getProcessInstanceFromRequestWithoutAccessCheck(String processInstanceId)
Returns theProcessInstancethat is requested without calling the access interceptor Throws the right exceptions when bad request was made or instance was not found.
-
-