I have several rules that execute, say, on node_save with several conditions. I have named these rules as A, B and C.

Is there way in Rules by which I can know which of the three rules on node_save actually satisfied the conditions and got triggered? I am looking for some variable that I can use in 'Execute PHP' area in the Action of all these three rules so that I can understand which rule/rules got executed.

Can someone help me to find this out? One option is using debug_backtrace and find the arguments passed to Rules. But that is bit hacky and I want to know if there any better solution.

Comments

tr’s picture

Issue summary: View changes
Status: Active » Fixed

You can turn on the Rules debug information using the form at /admin/config/workflow/rules/settings

This will log the execution details to the screen and/or to the dblog, depending on your selections. The details show you which rules fired, on which events, and show you the conditions that got evaluated and their results, and show you the actions that were performed. Plus, there are links back to the Rules configuration that those conditions/actions belong to. This should be enough to figure out what is going on.

Status: Fixed » Closed (fixed)

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