I try to find the best way to retrieve a sub-set of jobs in the dead letter using the Java API.
My use-case is:
- An asynchronous service task (Service Task Id: MY_SERVICE_TASK) is in charge of communicating with an external system
- This external system is down.
- After max retries, all MY_SERVICE_TASK jobs will be moved to the dead letter
- When the system is up (out of scope), I want to retry only the jobs associated to this failed MY_SERVICE_TASK task
I have used the
ManagementService API to retrieve all jobs, some filterings may be done using its
createDeadLetterJobQuery() method, but I haven’t found a way to filter by Service Task Id (or name).
What is the best way to do this filtering?
Thanks in advance for your help