I believe it is "drools", without the "$"...
Olenin, Vladimir (MOH) wrote:
Hi,
I was trying to access ‘$drools’ variable from the RHS of the rule,
but keep on getting compilation errors: $drools can’t be resolved. The
docs for 3.0.5 mention that ‘drools’ variable is made available to the
user from the RHS of the rule… I wonder if it’s a bug or I’m doing
smth wrong? Here is an excerpt from the rule:
Rule “xxx”
When
….
*then*
System.out.println($drools);
*end*
For other purposed I have these list of imports in the header:
*import* org.drools.spi.KnowledgeHelper;
*import* org.drools.base.DefaultKnowledgeHelper;
*import* org.drools.spi.Tuple;
*import* org.drools.*rule*.Rule;
Thanks,
Vlad
------------------------------------------------------------------------
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--
Edson Tirelli
Software Engineer - JBoss Rules Core Developer
Office: +55 11 3124-6000
Mobile: +55 11 9218-4151
JBoss, a division of Red Hat @
www.jboss.com