cancel
Showing results for 
Search instead for 
Did you mean: 

Timer triggers entity deleted event

mortalcombat
Champ on-the-rise
Champ on-the-rise

Hi all,

I am adopting activiti version 5.22.0 and I've noticed the following behavior: when a timer is started an entity deleted event is triggered with no delete reason specified. I'm attaching a unit test which illustrates this behavior. I have added an EventListener, which is notified when an "ENTITY_DELETED" event occurs and it checks whether the deleteReason is null. The same event is also triggered for the endTask. Am I doing something wrong, or is this the expected behavior ?

Kind regards,

Mihail

11 REPLIES 11

Hi Niklas,

I've raised a bug here: 

mortalcombat
Champ on-the-rise
Champ on-the-rise

Hi Niklas,

Could there a be a better workaround for this ? I mean, all those casts to get the deleteReason are not very pleasant to look at. Is it possible to get the entity in a more elegant way ?

Kind regards,

Mihail