<div dir="ltr">Hey.. <br>I have encountered a problem using the &#39;maches&#39; operator in drool.. I wanna write something like this (just made a simple example)<br> <div><div>rule &quot;Hello World&quot;</div><div>    when</div>
<div>    <span class="" style="white-space:pre">        </span>m: Message(&quot;5&quot; matches &quot;5&quot;)</div><div>    then</div><div>        System.out.println(&quot;Test&quot;);</div><div>end</div></div><div><br></div><div>
But eclipse tells me &quot; &#39;&quot;5&quot; ~= &quot;5&quot;&#39; must be an boolean expression &quot;, and i get an runtime error if i try to run it.. However if I use &#39;not matches&#39; it works! Forcing me to do something like this:<br>
<br><div>    when</div><div>    <span class="" style="white-space:pre">        </span>not m: Message(&quot;5&quot; not matches &quot;5&quot;)</div><div>    then<br><br><br>Any ideas how to fix this? <br>- Thanks! <br><br>-- <br>
Peter</div></div></div>