The deadletter job has executionId, processInstanceId and processDefinitionId
Is there a way to query the deadletter queue with a businessKey?
If no, how can we achieve that? By looking in the runtime/history the mapping between businessKey and processInstanceId?
When the process goes to the deadletter queue, is it removed from the runtime? Is it in the history?
Thank you @filiphr
So I can retrieve the processInstanceId by querying the runtimeService with the businessKey, then checking the deadLetterQueue to see if a job with such id exists there.
My goal is to reply to clients that ask for process status and I want to check that the process is not in an error state.
Thanks.