How to update jobDueDate for Time boundary events

Hi Community,

I have a process with a timer boundary event . Is there a way in C8 to update its due date

how could we query timerJobs and manually set the due date of a job to trigger a timer boundary event in camunda 8.5

In C7 we use below approach to updateJobDuedate

List timerJobs = getProcessEngine(tenantId).getManagementService().createJobQuery().processInstanceId(processInstanceId).timers().active().list();
SimpleDateFormat dateFormat = new SimpleDateFormat(“yyyy-MM-dd’T’HH:mm:ss.SSS’Z’”);
dateFormat.setTimeZone(TimeZone.getTimeZone(“UTC”));
if (!timerJobs.isEmpty()) {
try {
Date date = dateFormat.parse(variables.get(“auctionEndDate”).toString());
getProcessEngine(tenantId).getManagementService().setJobDuedate(timerJobs.get(0).getId(), date);
} catch (ParseException e) {
logger.error(“failed to update due date”);
}
}

Is there any way or zeebe client methods to achieve the same in camunda 8.5

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.