@RestController public class ExternalWorkerAcquireJobResource extends ExternalWorkerJobBaseResource
| Modifier and Type | Field and Description |
|---|---|
protected ExternalJobRestResponseFactory |
restResponseFactory |
cmmnManagementService, managementService, restApiInterceptor| Constructor and Description |
|---|
ExternalWorkerAcquireJobResource(ExternalJobRestResponseFactory restResponseFactory) |
| Modifier and Type | Method and Description |
|---|---|
List<AcquiredExternalWorkerJobResponse> |
acquireAndLockJobs(AcquireExternalWorkerJobRequest request) |
org.springframework.http.ResponseEntity<?> |
bpmnErrorJob(String jobId,
ExternalWorkerJobErrorRequest request) |
org.springframework.http.ResponseEntity<?> |
completeJob(String jobId,
ExternalWorkerJobCompleteRequest request) |
protected org.flowable.job.api.ExternalWorkerJobAcquireBuilder |
createExternalWorkerAcquireBuilder() |
protected org.flowable.job.api.ExternalWorkerJobFailureBuilder |
createExternalWorkerJobFailureBuilder(String jobId,
String workerId) |
protected Map<String,Object> |
extractVariables(List<EngineRestVariable> restVariables) |
org.springframework.http.ResponseEntity<?> |
failJob(String jobId,
ExternalWorkerJobFailureRequest request) |
org.springframework.http.ResponseEntity<?> |
terminateCmmnJob(String jobId,
ExternalWorkerJobTerminateRequest request) |
createExternalWorkerJobQuery, getExternalWorkerJobById, setCmmnManagementService, setManagementService, setRestApiInterceptorprotected final ExternalJobRestResponseFactory restResponseFactory
public ExternalWorkerAcquireJobResource(ExternalJobRestResponseFactory restResponseFactory)
@PostMapping(value="/acquire/jobs",
produces="application/json")
public List<AcquiredExternalWorkerJobResponse> acquireAndLockJobs(@RequestBody
AcquireExternalWorkerJobRequest request)
@PostMapping(value="/acquire/jobs/{jobId}/complete",
produces="application/json")
public org.springframework.http.ResponseEntity<?> completeJob(@PathVariable
String jobId,
@RequestBody
ExternalWorkerJobCompleteRequest request)
@PostMapping(value="/acquire/jobs/{jobId}/bpmnError",
produces="application/json")
public org.springframework.http.ResponseEntity<?> bpmnErrorJob(@PathVariable
String jobId,
@RequestBody
ExternalWorkerJobErrorRequest request)
@PostMapping(value="/acquire/jobs/{jobId}/cmmnTerminate",
produces="application/json")
public org.springframework.http.ResponseEntity<?> terminateCmmnJob(@PathVariable
String jobId,
@RequestBody
ExternalWorkerJobTerminateRequest request)
@PostMapping(value="/acquire/jobs/{jobId}/fail",
produces="application/json")
public org.springframework.http.ResponseEntity<?> failJob(@PathVariable
String jobId,
@RequestBody
ExternalWorkerJobFailureRequest request)
protected Map<String,Object> extractVariables(List<EngineRestVariable> restVariables)
protected org.flowable.job.api.ExternalWorkerJobAcquireBuilder createExternalWorkerAcquireBuilder()
Copyright © 2020 Flowable. All rights reserved.