From 7e7bd00626b5c9ebb84652dc6ad767dbd36936c5 Mon Sep 17 00:00:00 2001 From: Tijs Rademakers Date: Mon, 4 Sep 2023 13:20:58 +0200 Subject: [PATCH] Fix interceptor wrong method name --- .../rest/service/api/ExternalWorkerJobRestApiInterceptor.java | 2 +- .../service/api/acquire/ExternalWorkerUnacquireJobResource.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/flowable-external-job-rest/src/main/java/org/flowable/external/job/rest/service/api/ExternalWorkerJobRestApiInterceptor.java b/modules/flowable-external-job-rest/src/main/java/org/flowable/external/job/rest/service/api/ExternalWorkerJobRestApiInterceptor.java index 6bb02bda5e9..cfed662302d 100644 --- a/modules/flowable-external-job-rest/src/main/java/org/flowable/external/job/rest/service/api/ExternalWorkerJobRestApiInterceptor.java +++ b/modules/flowable-external-job-rest/src/main/java/org/flowable/external/job/rest/service/api/ExternalWorkerJobRestApiInterceptor.java @@ -42,7 +42,7 @@ public interface ExternalWorkerJobRestApiInterceptor { void failExternalWorkerJob(ExternalWorkerJob job, ExternalWorkerJobFailureRequest request); - void accessAcquireExternalWorkerJobs(UnacquireExternalWorkerJobsRequest request); + void accessUnacquireExternalWorkerJobs(UnacquireExternalWorkerJobsRequest request); void unacquireExternalWorkerJob(ExternalWorkerJob job, UnacquireExternalWorkerJobsRequest request); } diff --git a/modules/flowable-external-job-rest/src/main/java/org/flowable/external/job/rest/service/api/acquire/ExternalWorkerUnacquireJobResource.java b/modules/flowable-external-job-rest/src/main/java/org/flowable/external/job/rest/service/api/acquire/ExternalWorkerUnacquireJobResource.java index 5efb7a48dfa..05d553b1a6d 100644 --- a/modules/flowable-external-job-rest/src/main/java/org/flowable/external/job/rest/service/api/acquire/ExternalWorkerUnacquireJobResource.java +++ b/modules/flowable-external-job-rest/src/main/java/org/flowable/external/job/rest/service/api/acquire/ExternalWorkerUnacquireJobResource.java @@ -50,7 +50,7 @@ public ExternalWorkerUnacquireJobResource(ExternalJobRestResponseFactory restRes @PostMapping(value = "/unacquire/jobs", produces = "application/json") public ResponseEntity unacquireJobs(@RequestBody UnacquireExternalWorkerJobsRequest request) { if (restApiInterceptor != null) { - restApiInterceptor.accessAcquireExternalWorkerJobs(request); + restApiInterceptor.accessUnacquireExternalWorkerJobs(request); } if (StringUtils.isEmpty(request.getWorkerId())) {