I have a service task which is executing JavaDelegate code, from there I’m throwing exceptions so Camunda creates incidents after the set retries. From the Camunda cockpit I can see these incidents and retry them, how do I do this from Java? I’ve read failedJob types just need to be rexecuted by setting reties using /job/{id}/retries api, is there a version of this using java code using the process engine api?
I’ve seen some sample codes on querying the incidents and resolving but nothing about executing/retrying them
List<Incident> incidentContext = runtimeService.createIncidentQuery().list();
incidentContext.forEach(incident -> {
// How do I retry here?
}