In Camunda 7, I used the following code to retrieve jobs with exceptions for specific process instances:
managementService.createJobQuery()
.withException()
.processInstanceIds(processInstanceIds)
.orderByJobDueDate()
.list();
As I migrate to Camunda 8.8, I’m looking for a way to achieve the same functionality. Specifically, I’d like to query failed jobs by their processInstanceIds and sort them by due date.
Is there an equivalent API in Camunda 8, or a recommended approach to accomplish this?
Any guidance, best practices, or examples would be greatly appreciated.