[rules-users] Newbie: using a spreadsheet

Hehl, Thomas Thomas.Hehl at acs-inc.com
Mon Apr 30 08:42:03 EDT 2007


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!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070430/6fb60b5a/attachment.html 


More information about the rules-users mailing list