I thought from reading the documentation that when I create new rule sets I should be able to use them as "actions" with Triggers. But when I go and look at the actions settings page (/admin/settings/actions) the only Rule Set I see there is the default one (Rule Set Example working with content). Is this something that isn't implemented in the Drupal 6 version yet or am I misunderstanding the documentation

Comments

mitchell’s picture

Title: Rule sets » Improve rule sets documentation
Version: 6.x-1.0-beta5 » 6.x-1.x-dev
Component: Miscellaneous » Documentation
Category: support » task
Issue tags: +rules 1.0

I don't know how rule sets work, but this probably has to do with the documentation. :)

Perhaps a video would help people with this complex feature.

fago’s picture

> I thought from reading the documentation that when I create new rule sets I should be able to use them as "actions" with Triggers

No, you get only a rules action.

fago’s picture

Mapping actions back to core actions might be a nice feature though - in particular for rule sets, as you could wrap any rules into an action.

vpapadim’s picture

i am also puzzled with how rule sets work, but i think that they show up on the rule actions only if the claimed variable (the one defined upon rule set creation) is available at that time.
very confusing...
Vasilis

aantonop’s picture

If your rule set depends on a specific thing, like a node or a user it will not appear as an action if that object is not present in your rule.

So, easiest way to solve that is to load a node or load a user by id in your rule and then any rule sets needing nodes or users will appear

mitchell’s picture

Status: Active » Fixed

Documentation is available in a link on the project page.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

hughbris’s picture

I was also completely confused by the rulesets explanation. It didn't even sound like it made sense. I will figure it out, but not from the documentation :(

El Bandito’s picture

Unfortunately I'm with hughbris. From the documentation :

Rule Sets

Rule sets are similar in concept to subroutines and can be invoked by actions or another module. A rule set always works upon some specified arguments, with which its rules operate. So it's useful to create a rule set for some common tasks and to invoke it (by action) out of triggered rules when needed.

Example given: You want to log some user actions on a site. So you create a rule set, which takes the log message and its user and logs it, but only if the user has not disabled it. So you can invoke this rule set from multiple Triggered Rules, without the need of configuring the same condition again and again.

Can some kind person please translate this into something comprehensible to mere mortals like me ;-) I have a feeling that adding a rule set to a rule allows more actions to become available, relating to the arguments associated with the rulesset, but I'm very, very unclear.

Any pointers much appreciated.

El B

mitchell’s picture

Status: Closed (fixed) » Active

Take a look at node one's screencasts:
http://nodeone.se/blogg/learn-rules-with-nodeone-part-6-a-simple-rule-set is a good start.

mitchell’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)
Issue tags: -rules 1.0

Automatically closed -- issue fixed for 2 weeks with no activity.