<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&#39;s my original code:</div>

<div> </div>
<div><font size="2">
<p align="left">rule &quot;Find Alpha in a sentence&quot;</p><u>
<p align="left">salience</p></u> 100
<p>wrap: WrapperClass(Sentence == &quot;Alpha&quot;)</p>
<p align="left">then </p>
<p>System.out.<u>println</u>(&quot;Aha found ya!&quot;);</p>
<p>end</p>
<p> </p>
<p> </p></font></div>