cancel
Showing results for 
Search instead for 
Did you mean: 

Deploy newer version of a process. Is there a way to send a signal after it is done?

hermosin
Champ in-the-making
Champ in-the-making
Hello, I'm working with with activiti REST and Explorer 5.21 and I was wondering if deploying a new version of a process sends some kind of signal or triggers an event. I specifically need to make a REST call when a deploy version has changed.

It could be nice if I could catch that in a process instance with an intermediate catching event.

Regards.
1 REPLY 1

warper
Star Contributor
Star Contributor
You can make a listener for process definition and process ENTITY_CREATED, ENTITY_INITIALIZED, ENTITY_UPDATED related to process definitions of interest. You might need to implement additional filtering logic to make sure there is actually new version of process definition, but it should be possible with repository services.

Take a look at following sections of activiti user guide:
3.18.4. Adding listeners to process definitions
3.18.6. Supported event types

You can try to filter events in listener and send signals individually to each active process or try experimental listeners throwing BPMN events and handle "if it is updated" condition inside process logic/service tasks.

P.S. I suspect it might create quite a long response for deployment calls, since AFAIK signals are processed in synchronous way.