Posted by mansspams on July 26, 2009 at 1:41am
Jump to:
| Project: | Activity |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Rules has become very important module and advanced workflows can be built on it. A simple integration could save a lot of time and effort for you, as Activity maintainers. If you create simple action for Rules that feeds event to Activity module, your hands will be free from maintainig large parts of Activity module and it would provide greater freedom for users.
Best part? Jobs is done for you. There is already action that feeds token formated strings to wachdog. People may see flagging, node referencing and all kind of new info on Activity feed.
Comments
#1
Activity2 is built upon triggers, although it's extended as triggers did not fulfill all of our needs, which is also why Rules came about originally I think. So the basic framework to integrate them is definitely there, it would just need tested by someone and the actual integration figured out. We're definitely open to it, just do not have the bandwidth or need ourselves.
#2
subscribe. Rules have more options for fine tuning and will be so great when activity switch from triggers to rules.
#2
I remain HIGHLY skeptical.
How so, what could be replaced in Activity with Rules? The templating? Does Rules have stuff that works with Token (the watchdog uses t() for its formated strings)? Does this integration require that the variables be stored alongside the message (/me cringes)?
What find tuning is missing currently in Activity2 ?
#3
Hey everyone,
I'd love to see some Rules integration, but without affecting the basic architecture of Activity 2, which I think is already very sound (and is a big advantage of this module).
The added functionality that Rules gives is a lot of support for conditionals: for instance, you can trigger an action based on the value of a CCK field, by comparing two different CCK fields, by checking the path, or by straight PHP code. So Rules could make it possible to record an Activity (or NOT record an activity) based on whether data on a particular node matches a wide variety of pre-defined conditions -- all without any hand-coding. I think this is what the poster in #2 means by "fine tuning."
So I'd like to see a much more simple integration with Rules than previous posts on this thread. For instance, Activity module could provide a simple Rules action that merely records a message to Activity's log. This way, you wouldn't have to mess with the terrific and amazing work that has already been done on this module, yet others could additionally inject certain Rules triggers/events as needed.
Thoughts?
Thanks,
Ben
#4
While I don't think that rules integration is required and would not provide a great deal more in terms of core functionality, I would see it as a smart move for integration into other modules. Given that most mature Drupal mods have chosen to integrate with rules, it opens up a whole new world of interaction that the activities maintainers don't need to individually maintain. This include everything from tracking activity in social networks to ecommerce via uberrcart/rules and a ton of other applications.
Just my 2 cents. Either way. Great work on this module gentlemen. I use it and I love it.
--
J.
#5
Just a quick note for those seeking activity list with rules... Heartbeat module handles this, but I prefer Activities approach.
#6
Is this still happening?
I would love to help with creating a patch for integrating this with Rules.module.
#7
Subscribing. Thanks
#8
For those interested in activity message module which can use rules: http://drupal.org/project/message
Personally, I'd rather see Activity 2.x reach a release candidate before rules integration is considered. Perhaps it might be best to leave such a possibility for Activity 3.x.
#9
We'd also like to see rules integration, since we already use it for quite a few other things. For example, it would be nice to have the rule that gets triggered when a flag friend relationship is completed (which we use to send a message to the initiating friend), also create an activity feed entry. The idea is to be able to handle these two tasks in one place, which makes for easier admininstration, and i would imagine quicker page loads.
What about a helper module that works with Activity and Rules to bridge the two? I can't commit to anything because I'm way too busy right now, though I might take a stab at this. I don't see why there can't be a simple module that provides this functionality.
#10
Subscribe
#11
I've come across a situation where I need two different messages for a node insert based on the value of a CCK node reference field. I would be interested in a rules integration.
#12
I'm in the process of writing my own caching layer for activity, and I'd like to use rules for cache expiration. Specifically, I'd like to be able to have rules integration for activity_delete() such that it would trigger a rule that flushed the deleted message from cache. This seems relatively straight-forward so I may just roll up a patch for this.
The only question (at least with delete) is the lack of a hook in activity_delete(). Maybe the best approach would be to roll rules integration as a separate module, and add in any missing hooks to activity where they are needed. That way it wouldn't clutter up the main activity code with rules stuff.