[rules-users] simple rule with global var causing errors.

Mike Vargo mike.vargo at chromeriver.com
Mon Jul 16 18:54:07 EDT 2007


I have a very simple drl file.

 

==============================================

package com.sample;

#generated from Decision Table

global RulesOutput rulesOutput;

#From row number: 12

rule "Routing Decision_12"

                

                salience 65524

                when

                                Matter(type == "MyMatter")

                then

                                rulesOutput.setRoleId(1);

                                drools.clearAgenda();

end

==============================================

 

When I load it, I get the following:

 

org.drools.rule.InvalidRulePackage: Rule Compilation error rulesOutput
cannot be resolved

 

                at org.drools.rule.Package.checkValidity(Unknown Source)

                at org.drools.common.AbstractRuleBase.addPackage(Unknown
Source)

                at com.sample.PHRulesTest.main(PHRulesTest.java:42)

 

Any help is appreciated.

 

- Mike

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070716/50e058bd/attachment.html 


More information about the rules-users mailing list