I'm trying to build a simple rule on KIE Workbench/Drools in a new DRL file and I keep getting the following error on build & deploy
Rule Compilation error name cannot be resolved to a variable Syntax error, insert ";" to complete Statement
here's the code:
package demo.people.peopleproject
import demo.people.peopleproject.Person
rule "is18rule"
when
Person(age>=18)
then
System.out.println(name + "is 18 or over")
end
and here's a screenshot of my work bench if helpful
I'm new to Drools, TIA for your help :)
EDIT: I should add that simply adding a ; really anywhere here hasn't helped, so, yes, I have tried that