Drupal Answers is a question and answer site for Drupal developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have three Rules to do something after saving content. I need to know which one is executed first and how I can control this order?

Is there a certain answer for this question?

share|improve this question
up vote 2 down vote accepted

It's based on the weight. Edit the Rule settings and you'll find a drop down to set the weight. I believe those with a lighter weight, e.g. -1, are executed before those with heavier weight, e.g. 5.

share|improve this answer
to "view" what is happening, on each rule add an action "display a system message". e.g. on rule with weight -1 say "on rule number 1, weight -1", when you are done, delete the messages. – pinueve Mar 1 at 17:57

You can set a weight for each rule.

enter image description here

share|improve this answer

Something that will help you find the answer to your question, is to have a look at Rules debugging ... Within the Rules settings, experiment a bit with the debugging facilities that come with the rules module. At least have a look at the "Rules Evaluation Log" (to check that the Rules logic being executed, actually matches what you expect that logic to be).

Depending on what the result of that type of debugging is, you may also want to (temporary) enable the Devel module, so that you can (temorary) add a Rules Action like "Display a value" (in your case of the entire node/webform that's used to submit that attached file).

Refer to the (great!) video "Debugging rules configuration" for way more details about these 2 variations.

To actually control the order of execution of 3 rules, you may want to implement these 3 rules as Rules Components, and then build a 4th rule in which the Rules action is to execute these 3 rules components ... in the exact order that "you" want them to be executed.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.