cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieving all message and signal subscriptions for a given executionId

pclaeys
Champ in-the-making
Champ in-the-making
Hi,
Background:
Building an inspector tool that visualizes the exection tree; so an administrator can know : 'what is a given process waiting on at the moment ? '  -> it's useful to see what on which messages or signals an execution is subscribed .

Question:
How can we retrieve on which BPMN messages and BPMN signals an execution is subscribed, using the activiti java api?

We can retrieve timers for a given execution by using
 managementService.createJobQuery().executionId(String executionId) 


Is there a similar feature for retrieving subscriptions - other than fetching by sql ?
2 REPLIES 2

jbarrez
Star Contributor
Star Contributor
Hi pclaeys, nice seeing you here 🙂

Signals and messages are stored as 'event subscriptions'. There is a 'hidden' API in the EventSubscriptionQueryImpl() which you can use to query event subscriptions like that using the execution.

pclaeys
Champ in-the-making
Champ in-the-making
Hi Joram,
thanks, that did the trick for us!
Pieter