2

I am using Drupal7. I have created a custom event for a rule using hook_rules_event_info(). I have added a Rules Action for the Rules Event "Flag a node".

When I invoke the Rules Event in code, using rules_invoke_event(), I have to know whether the Rules Action is executed successfully or not.

How can I identify if the Rules Action fails and handle the failure situation gracefully? Primarily I need to know how to identify whether the rule is successfully executed or not?

3
  • possible duplicate of Programmatically execute an action set (Rules module)
    – Anil Sagar
    Apr 22, 2014 at 10:26
  • @anil This is different.i know how to execute an action set programatically.I need to verify programatically whether the rule is executed successfully or not Apr 22, 2014 at 10:27
  • @AnilSagar not duplicate, or not this one anyway. Gobinath, why can't you use debugger or watchdog?
    – Mołot
    Apr 22, 2014 at 14:38

1 Answer 1

5

Try enabling debugging in rules->settings. Hope this will help you in finding the execution of action enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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