[rules-users] matches / not maches
Peter Troelsen
peter.j.troelsen at gmail.com
Wed Nov 27 07:31:57 EST 2013
Hey..
I have encountered a problem using the 'maches' operator in drool.. I wanna
write something like this (just made a simple example)
rule "Hello World"
when
m: Message("5" matches "5")
then
System.out.println("Test");
end
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:
when
not m: Message("5" not matches "5")
then
Any ideas how to fix this?
- Thanks!
--
Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20131127/39faeff7/attachment.html
More information about the rules-users
mailing list