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 38b07a5d674..ba5cfd6ac02 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()))