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