cancel
Showing results for 
Search instead for 
Did you mean: 

Subscribed Event Deleted After the process Redeployed

troy_adianto
Champ in-the-making
Champ in-the-making
Hi,

  I have a task in the process that has a boundary message event attached to it. It works well and i can see the event subscription record in the table ACT_RU_EVENT_SUBSCR.  However every time the process is re-deployed,it seems the subscription is deleted from that table, and the process won't response to the message event anymore.

Is this a normal behavior? is there anyway to retain the subscription after the process redeployment?

i'm using activiti 5.19

Thanks

3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
When you redeploy a new version of a process definitionm, the old message event is indeed deleted and replaced by the new message event in the new process definition.

But you are saying the message subscription is always deleted? Do you have a simple unit test that demonstrates that?

troy_adianto
Champ in-the-making
Champ in-the-making
Yes, all the entry in ACT_RU_EVENT_SUBSCR table related to the process definition is deleted, those that related to other process definition is still there though. i have create a new issue in JIRA ( https://activiti.atlassian.net/browse/ACT-4112 ) and attached the unit test there as well.

However i found out that this behavior doesn't happen in h2 database,but it happen on MySQL database which i use, haven't try for other databases though.

jbarrez
Star Contributor
Star Contributor
Thanks for the jira + test. We'll investigate. Very odd it behaves differently on different databases.