From 29a9f3635976c242a089fee0740d583f7d8bdc3e Mon Sep 17 00:00:00 2001 From: Enrique Gonzalez Martinez Date: Tue, 28 Nov 2023 09:23:07 +0100 Subject: [PATCH] [incubator-kie-issues-711] Refactroing job service to allow collocated service for Quarkus --- .../java/org/kie/kogito/jobs/api/JobCallbackResourceDef.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/common/jobs/api/src/main/java/org/kie/kogito/jobs/api/JobCallbackResourceDef.java b/addons/common/jobs/api/src/main/java/org/kie/kogito/jobs/api/JobCallbackResourceDef.java index 982afe1739e..da33b448945 100644 --- a/addons/common/jobs/api/src/main/java/org/kie/kogito/jobs/api/JobCallbackResourceDef.java +++ b/addons/common/jobs/api/src/main/java/org/kie/kogito/jobs/api/JobCallbackResourceDef.java @@ -99,7 +99,7 @@ private static JsonNode buildPayload(ProcessInstanceJobDescription description, return objectMapper.valueToTree(new JobCallbackPayload(description.id())); } - private static TimerSchedule buildSchedule(ProcessInstanceJobDescription description) { + public static TimerSchedule buildSchedule(ProcessInstanceJobDescription description) { return TimerSchedule.builder() .startTime(description.expirationTime().get().toOffsetDateTime().truncatedTo(ChronoUnit.MILLIS)) .repeatCount(translateLimit(description.expirationTime().repeatLimit()))