Dead Letter Jobs Retry

Hello everyone,

I have a question regarding the jobs in the dead letter table and maybe the event subscription table:
I am building a REST controller to view all jobs that resulted in an error. Is it possible to set the process variables of these jobs after they run into the error and move them back to executable? I tried already using the runtimeService to set the variables but it did not have any impact. I know that moving jobs from dead letter table to executable table could fire a retry, but if the variables are still set wrong, it naturally results in an error.
So is there a service, which I can use to set the variables programmatically?

With kind regards,

Jan

The job is always related to an execution (a process instance for bpmn or a case instance for cmmn). So before moving the deadletter job to become an executable job, use the id of the execution to set the variables through the runtimeService.