cancel
Showing results for 
Search instead for 
Did you mean: 

How to implement a live feed?

ssun
Champ on-the-rise
Champ on-the-rise
We have several workflows and want to be alerted when certain things happens.
We prefer to not do it by receive emails but have a twitter feed like stream on a web page UI.
On the UI it will be a mixture of different events happened in Activiti.
How should I model it and implement this?
Should I have signal event at all the places I want to create a feed and have the receive signal event save it somewhere?

Thank you very much!

–Gordon
6 REPLIES 6

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Gordon,

You could use event listeners
http://www.activiti.org/userguide/#eventDispatcher

Regards
Martin

trademak
Star Contributor
Star Contributor
What do you mean with "certain things"? You could use our event handler mechanism to catch all kinds of events:

http://activiti.org/userguide/index.html#eventDispatcher

Would that work for you?

Best regards,

ssun
Champ on-the-rise
Champ on-the-rise
I think my "certain things" is equivalent to event. I will try to use the event handler mechanism.
But after catch the event, I probably need to save different events in a generic format into a database with index and then the front end UI can do AJAX call to refresh like a news feed.
I feel if all events are automatically saved in Activiti into a single table that you can query sort filter, it would be then very easy to implement a event news feed.

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

There is not "Log" table in the activiti. It can be part of your extension. (Can affect solution performance)

Regards
Martin

ssun
Champ on-the-rise
Champ on-the-rise
Thank you Martin!

jbarrez
Star Contributor
Star Contributor
Funny. See my commit: https://github.com/Activiti/Activiti/commit/8e01f79918392562f20ba97ef729e5ff53a09310

Like Martin says: be careful of performance impact.