AnsweredAssumed Answered

Querying Message Intermediate Catching Event

Question asked by gokceng1 on Mar 8, 2013
Latest reply on Mar 8, 2013 by gokceng1
Hi,
I've written an util method that get a DelegateExecution instance like JavaDelegate.execute(). I know there is a intermediateCatchEvent that waits for a message but I don't have the info about message name. I know also that the execution is waiting at that activity(I mean intermediateCatchEvent). How can I find the message name which intermediateCatchEvent is waiting for?
At that point when I called:

runtimeService.createExecutionQuery().processInstanceId(processInstance.getProcessInstanceId()).list()
or
((ExecutionEntity)runtimeService.createExecutionQuery().processInstanceId(processInstance.getProcessInstanceId()).singleResult())

I get 1 process instance, it doesn't give me any info about message subscription. I've tried
executionEntity.getEngineServices().getManagementService().createJobQuery().list()
but it gives nothing, I think it is only applicable to timer event, is that correct?

Thanks…

Outcomes