@Yana , @Niall
With managementService we can change the dueDate but we cannot change the Repeat.
How can we change the repeat?
private void updateTimer(String processId, String cronJobExpression) {
final Job job = managementService.createJobQuery().processDefinitionKey(processId).timers().singleResult();
if (job != null) {
Date newDueDateFromCronJobExpression = getNextDateFor(cronJobExpression);
managementService.setJobDuedate(job.getId(), newDueDateFromCronJobExpression);
log.info("Timer for " + processId + " was updated. Next run date: " + newDueDateFromCronJobExpression);
} else {
log.error("No timer was found for processId: " + processId);
}
}