Is it possible using the Java API to list all tasks for a given ProcessInstanceId / BusinessKey that are waiting on a given MessageBoundaryEvent?
One way I can potentially do it is to
List all tasks via “createTaskQuery()”
Get the ProcessDefinitionID from the Task
Load the Process definition
Get the Boundary Events attached to the Task step
Compare these to the Messages defined in the definition
This all seems very laborious though and given that “MessageCorrelationBuilder” must do something similar to work out which tasks to complete when the message is signalled I’m wondering if I’m missing something simple?