[jboss-user] [Beginners Corner] - drools, globals and lhs method calls
eng@upocnetworks.com
do-not-reply at jboss.com
Fri Nov 7 16:35:27 EST 2008
hi. i'm using drools for the first time and i'm running into a problem using a global in the lhs. here's the situation
i have a service object set as a global
i want to call a method on this object that returns a boolean
i can use it in the rhs no problem but in the lhs i get compilation errors
so for example, i can do this no problem:
rule checkExistingSub
when
$s : SubscriberModel()
$c : CollectiveModel()
then
collectiveService.isMember($s, $c);
end
however when i try this:
rule checkExistingSub
when
$s : SubscriberModel()
$c : CollectiveModel()
collectiveService.isMember($s, $c);
then
end
i get this:
[23,29]: unknown:23:29 Unexpected token '$s'
i've experimented a bit but just can't get it to work. so my questions are:
is this possible?
if so, what am i missing?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187832#4187832
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187832
More information about the jboss-user
mailing list