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