I am working on a website and one (maybe more) rule is not being triggered.
The rule that is not working is as follows
Event:
After updating existing content
Condition:
Content is of type...
Actions:
Show a massage on the site...
...
More actions
I tried to reproduce the problem with a following rule
Event:
After updating existing content
Condition:
Content is of type...
Actions:
Show a massage on the site...
But it works.
The rule used to work. The portal is under development. There are many added modules. The rule weight is the same.
The only difference between the two rules is the name (I tried changing the name) and actions performed.
Any idea what can be wrong?
UPDATE I tried cloning the faulty rule and the clone does not work. Below I attach the code of the faulty and working rules.
Works
{ "rules_test_update_rule" : {
"LABEL" : "test Update Rule",
"PLUGIN" : "reaction rule",
"REQUIRES" : [ "rules" ],
"ON" : [ "node_update" ],
"IF" : [
{ "node_is_of_type" : {
"node" : [ "node" ],
"type" : { "value" : { "test_case" : "test_case" } }
}
},
{ "data_is" : { "data" : [ "node:field-workflow-status:tid" ], "value" : "28" } },
{ "NOT data_is_empty" : { "data" : [ "node:field-workflow-reviewers" ] } }
],
"DO" : [
{ "drupal_message" : { "message" : "Test case got updated", "type" : "warning" } }
]
}
}
Does not work
{ "rules_tc_admin_review_v1" : {
"LABEL" : "TC: admin review",
"PLUGIN" : "reaction rule",
"REQUIRES" : [ "rules", "privatemsg_rules", "windbench_workflow", "og" ],
"ON" : [ "node_update" ],
"IF" : [
{ "node_is_of_type" : {
"node" : [ "node" ],
"type" : { "value" : { "test_case" : "test_case" } }
}
},
{ "data_is" : { "data" : [ "node:field-workflow-status:tid" ], "value" : "28" } },
{ "NOT data_is_empty" : { "data" : [ "node:field-workflow-reviewers" ] } }
],
"DO" : [
{ "drupal_message" : { "message" : "User has been notified.", "type" : "warning" } },
........ more in the "DO" section, should be irrelevant.....