Class ProcessInstanceCollectionResource
- java.lang.Object
-
- org.flowable.rest.service.api.runtime.process.BaseProcessInstanceResource
-
- org.flowable.rest.service.api.runtime.process.ProcessInstanceCollectionResource
-
@RestController public class ProcessInstanceCollectionResource extends BaseProcessInstanceResource
Modified the "createProcessInstance" method to conditionally call a "createProcessInstanceResponse" method with a different signature, which will conditionally return the process variables that exist when the process instance either enters its first wait state or completes. In this case, the different method is always called with a flag of true, which means that it will always return those variables. If variables are not to be returned, the original method is called, which does not return the variables.- Author:
- Frederik Heremans, Ryan Johnston (@rjfsu), Zheng Ji
-
-
Field Summary
Fields Modifier and Type Field Description protected HistoryServicehistoryServiceprotected RepositoryServicerepositoryService-
Fields inherited from class org.flowable.rest.service.api.runtime.process.BaseProcessInstanceResource
restApiInterceptor, restResponseFactory, runtimeService
-
-
Constructor Summary
Constructors Constructor Description ProcessInstanceCollectionResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbulkDeleteProcessInstances(BulkDeleteInstancesRestActionRequest request)ProcessInstanceResponsecreateProcessInstance(ProcessInstanceCreateRequest request, javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse response)DataResponse<ProcessInstanceResponse>getProcessInstances(Map<String,String> allRequestParams, javax.servlet.http.HttpServletRequest request)-
Methods inherited from class org.flowable.rest.service.api.runtime.process.BaseProcessInstanceResource
addVariables, getProcessInstanceFromRequest, getProcessInstanceFromRequestWithoutAccessCheck, getQueryResponse
-
-
-
-
Field Detail
-
historyService
@Autowired protected HistoryService historyService
-
repositoryService
@Autowired protected RepositoryService repositoryService
-
-
Method Detail
-
getProcessInstances
@GetMapping(value="/runtime/process-instances", produces="application/json") public DataResponse<ProcessInstanceResponse> getProcessInstances(@RequestParam Map<String,String> allRequestParams, javax.servlet.http.HttpServletRequest request)
-
createProcessInstance
@PostMapping(value="/runtime/process-instances", produces="application/json") public ProcessInstanceResponse createProcessInstance(@RequestBody ProcessInstanceCreateRequest request, javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse response)
-
bulkDeleteProcessInstances
@PostMapping("/runtime/process-instances/delete") @ResponseStatus(NO_CONTENT) public void bulkDeleteProcessInstances(@RequestBody BulkDeleteInstancesRestActionRequest request)
-
-