cancel
Showing results for 
Search instead for 
Did you mean: 

How to parse deployed model ?

nbouget
Champ in-the-making
Champ in-the-making
Hi,

Once I deployed a process in Activiti, I would like to access all deployed process models in order to get all start message events.
Is there an easy way to do it ?

Thanks
3 REPLIES 3

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,
to get all start message events you can query for subscriptions. Have a look on the following test in activiti sources
org.activiti.engine.test.bpmn.event.message.MessageStartEventTest#testDeploymentCreatesSubscriptions.

Regards
Martin

nbouget
Champ in-the-making
Champ in-the-making
Hi,

From this example, I'm able to retrieve a previous deployed message event, but I don't know how to access its content, for example, I need to read the execution listeners associated to the start message event…

I was hoping that maybe there is a way to browse a previously deployed process, do you know if it's possible ?

Bests,
Nicolas

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

Subscription attribute is configuration. Configuration stores process definition id.

Regards
Martin