Class BaseCaseInstanceResource
- java.lang.Object
-
- org.flowable.cmmn.rest.service.api.runtime.caze.BaseCaseInstanceResource
-
- Direct Known Subclasses:
BaseVariableResource,CaseInstanceCollectionResource,CaseInstanceDiagramResource,CaseInstanceIdentityLinkCollectionResource,CaseInstanceIdentityLinkResource,CaseInstanceQueryResource,CaseInstanceResource
public class BaseCaseInstanceResource extends Object
- Author:
- Tijs Rademakers
-
-
Field Summary
Fields Modifier and Type Field Description protected org.flowable.cmmn.api.CmmnRepositoryServicerepositoryServiceprotected CmmnRestApiInterceptorrestApiInterceptorprotected CmmnRestResponseFactoryrestResponseFactoryprotected org.flowable.cmmn.api.CmmnRuntimeServiceruntimeService
-
Constructor Summary
Constructors Constructor Description BaseCaseInstanceResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddVariables(org.flowable.cmmn.api.runtime.CaseInstanceQuery caseInstanceQuery, List<QueryVariable> variables)protected org.flowable.cmmn.api.runtime.CaseInstancegetCaseInstanceFromRequest(String caseInstanceId)Returns theCaseInstancethat is requested and calls the access interceptor.protected org.flowable.cmmn.api.runtime.CaseInstancegetCaseInstanceFromRequestWithoutAccessCheck(String caseInstanceId)Returns theCaseInstancethat is requested without calling the access interceptor Throws the right exceptions when bad request was made or instance was not found.protected DataResponse<CaseInstanceResponse>getQueryResponse(CaseInstanceQueryRequest queryRequest, Map<String,String> requestParams)
-
-
-
Field Detail
-
restResponseFactory
@Autowired protected CmmnRestResponseFactory restResponseFactory
-
runtimeService
@Autowired protected org.flowable.cmmn.api.CmmnRuntimeService runtimeService
-
repositoryService
@Autowired protected org.flowable.cmmn.api.CmmnRepositoryService repositoryService
-
restApiInterceptor
@Autowired(required=false) protected CmmnRestApiInterceptor restApiInterceptor
-
-
Method Detail
-
getQueryResponse
protected DataResponse<CaseInstanceResponse> getQueryResponse(CaseInstanceQueryRequest queryRequest, Map<String,String> requestParams)
-
getCaseInstanceFromRequest
protected org.flowable.cmmn.api.runtime.CaseInstance getCaseInstanceFromRequest(String caseInstanceId)
Returns theCaseInstancethat is requested and calls the access interceptor. Throws the right exceptions when bad request was made or instance was not found.
-
getCaseInstanceFromRequestWithoutAccessCheck
protected org.flowable.cmmn.api.runtime.CaseInstance getCaseInstanceFromRequestWithoutAccessCheck(String caseInstanceId)
Returns theCaseInstancethat is requested without calling the access interceptor Throws the right exceptions when bad request was made or instance was not found.
-
addVariables
protected void addVariables(org.flowable.cmmn.api.runtime.CaseInstanceQuery caseInstanceQuery, List<QueryVariable> variables)
-
-