Hello,
I have written the following simple DSL in Drools:
[when]employee belongs to a particular state{state}=$employee:employee (statename=="{state}");
[then]Greet Employee=System.out.println("Hello");
I have also created the corresponding model with a field named “state”.
When I try to create business rule for the same and when I validate the rule I get the following error:
Unable to create Field Extractor for 'statename' of '[ClassObjectType class=dslDemoPackage.employee]' in rule 'testdsl'
Let me know how I can resolve.
Best Regards,
Kripa