<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello there<div><br></div><div>I have the following object model</div><div><br></div><div>ClassA</div><div> String name</div><div> ClassB classB</div><div><br></div><div>ClassB</div><div> String status</div><div> String context</div><div><br></div><div>Before upgrading drools 5.2.0.Final I had the following rule:</div><div><br></div><div>when</div><div>ClassA ( classB.status =='Open' && name =='Hello' && classB.context='jump')</div><div>then</div><div>System.out.println("Hit rule");</div><div>end</div><div><br></div><div>However after upgrading to 5.2.0 the above rule does not get fired, instead I have to do the following:</div><div><br></div><div><div>when</div><div>ClassA ( <b>name =='Hello' </b>&& classB.status =='Open' && classB.context='jump')</div><div>then</div><div>System.out.println("Hit rule");</div><div>end</div></div><div><br></div><div>or </div><div><br></div><div><div>when</div><div>ClassA ( classB.status =='Open' && classB.context='jump' &&<b> name=='Hello'</b>)</div><div>then</div><div>System.out.println("Hit rule");</div><div>end</div></div><div><br></div><div><br></div><div>Has there been a change causing the original rule not to work? Or should the approach always be to use</div><div><br></div><div><div><div>when</div><div>ClassA ( <b>name =='Hello' </b>&& classB.status =='Open' && classB.context='jump')</div><div>then</div><div>System.out.println("Hit rule");</div><div>end</div></div><div><br></div><div>or </div><div><br></div><div><div>when</div><div>ClassA ( classB.status =='Open' && classB.context='jump' &&<b> name=='Hello'</b>)</div><div>then</div><div>System.out.println("Hit rule");</div><div>end</div></div></div><div><br></div><div>Any help would be appreciated</div><div><br></div><div>Thanks</div><div>Amin</div></body></html>