I've been following the ExamplePricePolicy example and am attempting to
build my own rules using a spreadsheet.
In my spreadsheet rules, I have the following:
ACTION
singleStatus: SingleParticipantStatus
singleStatus.setAnswer("$param");
This throws:
org.drools.rule.InvalidRulePackage: Rule Compilation error
SingleParticipantStatus.singleStatus cannot be resolved
Rule Compilation error SingleParticipantStatus.singleStatus cannot be
resolved
Rule Compilation error SingleParticipantStatus.singleStatus cannot be
resolved
Rule Compilation error SingleParticipantStatus.singleStatus cannot be
resolved
Rule Compilation error SingleParticipantStatus.singleStatus cannot be
resolved
When I googled on this error, most of the occurrences appeared to be related
to an import issue, but if I change the third line to:
setAnswer("$param");
It blows up because it knows that setAnswer is not a static method, which
tends to tell me that it found my class.
I think I've parroted the example exactly and so I'm confused as to where to
go with this issue.
Thanks!