<div>Hey guys,</div>
<div> </div>
<div>I read in a previous post that == in Drools 4.0.7 maps to .equals() automatically. My situation required me to put a String object into the working memory and do a comparison on it to see if a particular word is in the passed String sentence. Could anybody please guide me as to how to approach this problem? Thanks in advance. Here's my original code:</div>
<div> </div>
<div><font size="2">
<p align="left">rule "Find Alpha in a sentence"</p><u>
<p align="left">salience</p></u> 100
<p>wrap: WrapperClass(Sentence == "Alpha")</p>
<p align="left">then </p>
<p>System.out.<u>println</u>("Aha found ya!");</p>
<p>end</p>
<p> </p>
<p> </p></font></div>