cancel
Showing results for 
Search instead for 
Did you mean: 

Sub Task Events

pprestin
Champ in-the-making
Champ in-the-making
Hi Folks,

I pulled the latest bits down to attempting to get some sort of listener on the engine responding to sub task related activities.

When I previously queried on the subject I was let to believe I could receive these events using the new ActivityEvents available in 5.15

http://forums.activiti.org/content/new-task-event-listeners

I have set listeners on my process and am able to receive events for other activities (UserTask created, ManualTask created etc.) but subtasks do not appear to invoke any of the events.

What am I doing wrong?
2 REPLIES 2

martin_grofcik
Confirmed Champ
Confirmed Champ
You should get dispatchEvent(ActivitiEventBuilder.createEntityEvent(ActivitiEventType.ENTITY_CREATED, this)) and dispatchEvent(ActivitiEventBuilder.createEntityEvent(ActivitiEventType.ENTITY_INITIALIZED, this))
Regards
Martin

vgauravsh
Champ in-the-making
Champ in-the-making
Hi Martin,

I need to attach event to adhoc tasks and not sure if I understand above method correctly. If I created sub task and change the assignee how I can attach tasklistener to it. I also looked into delegateTask model, how we can attach listener on to adhoc delegate task.

Thanks,
Gaurav