Class ProcessInstanceCollectionResource
java.lang.Object
org.flowable.rest.service.api.runtime.process.BaseProcessInstanceResource
org.flowable.rest.service.api.runtime.process.ProcessInstanceCollectionResource
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
FieldsFields inherited from class org.flowable.rest.service.api.runtime.process.BaseProcessInstanceResource
restApiInterceptor, restResponseFactory, runtimeService
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.flowable.rest.service.api.runtime.process.BaseProcessInstanceResource
addVariables, getProcessInstanceFromRequest, getProcessInstanceFromRequestWithoutAccessCheck, getQueryResponse
-
Field Details
-
historyService
-
repositoryService
-
-
Constructor Details
-
ProcessInstanceCollectionResource
public ProcessInstanceCollectionResource()
-
-
Method Details
-
getProcessInstances
@GetMapping(value="/runtime/process-instances", produces="application/json") public DataResponse<ProcessInstanceResponse> getProcessInstances(@RequestParam Map<String, String> allRequestParams) -
createProcessInstance
@PostMapping(value="/runtime/process-instances", produces="application/json") @ResponseStatus(CREATED) public ProcessInstanceResponse createProcessInstance(@RequestBody ProcessInstanceCreateRequest request) -
bulkDeleteProcessInstances
@PostMapping("/runtime/process-instances/delete") @ResponseStatus(NO_CONTENT) public void bulkDeleteProcessInstances(@RequestBody BulkDeleteInstancesRestActionRequest request)
-