Active
Project:
Optimizing Rules SoC 2010
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
13 Jul 2010 at 09:10 UTC
Updated:
13 Aug 2010 at 12:15 UTC
Example with fields: in a rule you need to check first whether an entity has a field before you can do a data comparison on that field. So there is a dependency between those two conditions, is that a problem in the way you optimize conditions now in the decision tree?
Comments
Comment #1
Saubhagya commentedYes, I didn't look at that for event sets now and it's a problem. What can be the possible way to check that?
Comment #2
klausiintegrityCheck() should tell you whether the configuration is ok or not.
Comment #3
s0s commentedHi there! I have a similar setup, but a different approachto check the states, it works just fine:
Check a truth value:
$node->_workflow == 5;[Omit the php tags!] '5' is my live work flow state (you'll find it in your work flow overview). I hope that helps.
Comment #4
s0s commentedSry, idiot post. Can't delete.