cancel
Showing results for 
Search instead for 
Did you mean: 

How to call a java class at task complete?

vamsinipun
Star Contributor
Star Contributor

Hi Team,

     I am using activiti in my spring web application. I need to call a java at task complete. Please let me know if you have an idea.

Thanks

1 REPLY 1

cjose
Elite Collaborator
Elite Collaborator

Various options:

  1. If it is a user task: use the Task listener and execute your logic on task complete/
  2. Use an execution listener and execute logic on end event
  3. Execute your logic via a service task and configure the service task right after the user task
  4. use an event listener and execute your logic on task complete event.

Check Activiti User Guide  for more details on all these options.