How to implement a live feed?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2014 08:56 PM
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
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
Labels:
- Labels:
-
Archive
6 REPLIES 6
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-12-2014 04:16 AM
Hi Gordon,
You could use event listeners
http://www.activiti.org/userguide/#eventDispatcher
Regards
Martin
You could use event listeners
http://www.activiti.org/userguide/#eventDispatcher
Regards
Martin

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-12-2014 04:16 AM
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,
http://activiti.org/userguide/index.html#eventDispatcher
Would that work for you?
Best regards,

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-12-2014 07:37 PM
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.
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-16-2014 02:40 AM
Hi,
There is not "Log" table in the activiti. It can be part of your extension. (Can affect solution performance)
Regards
Martin
There is not "Log" table in the activiti. It can be part of your extension. (Can affect solution performance)
Regards
Martin

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2014 07:23 PM
Thank you Martin!
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-27-2014 10:01 AM
Funny. See my commit: https://github.com/Activiti/Activiti/commit/8e01f79918392562f20ba97ef729e5ff53a09310
Like Martin says: be careful of performance impact.
Like Martin says: be careful of performance impact.
