What is the difference between triggered rules and rulesets?

Events happening in the community are now at Drupal community events on www.drupal.org.
chana's picture

There is definitely a difference in the types of actions that are available between the two components.

As far as I can see, rulesets offer actions of a greater scope than triggered rules alone, but triggered rules seem to pick up on and allow me to use form actions as launch points for conditions and actions. It also looks like Rulesets can be "embedded" almost like subroutines in larger rulesets.

However, I am curious. Can someone give me an idea of where and why you would use a ruleset vs. a triggered rule?

Thanks very much,

Comments

rules handbook pages

arianek's picture

i haven't read through these, but there's a big section on rules in the handbook: http://drupal.org/node/298476

Good Question

msypes's picture

I, too, haven't been able to figure out what the story is concerning rulesets, despite having read the documentation. I've gotten two distinct concepts, either of which may be accurate:

  1. Rulesets are simply "containers" to group/organize related rules. (This seems unlikely, or needlessly redundant, as you can tag triggered rules with taxonomy terms for organization.)
  2. Rulesets may allow rules to interact with each other, either as a sequence, or in a elseif fashion.

I've used "regular" triggered rules successfully, and wanted to experiment with rulesets, hoping they would function more along the latter concept. I'd like to set up a rule that operates along the lines of: "When event, if this, do that, elseif some other thing, do something completely different."
This doesn't seem possible with triggered rules; it would require several distinct rules (cloned from a common base) for each if condition. Being able to put them all into one rule/ruleset would be nice.

the answer

reconstrukt's picture

http://drupal.org/node/298481

According to this, Triggered Rules are your system event engine interface, whereas Rulesets are like "macros" where you can define an action once, and not have to re-define it again inside a Triggered Rule.