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

Edson Tirelli tirelli at post.com
Mon Jul 16 19:35:19 EDT 2007


  Is the RulesOutput class in the com.sample package? otherwise you need to
either fully qualify the class name or import it...

  []s
  Edson

2007/7/16, Mike Vargo <mike.vargo at chromeriver.com>:
>
>  *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
>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>


-- 
  Edson Tirelli
  Software Engineer - JBoss Rules Core Developer
  Office: +55 11 3529-6000
  Mobile: +55 11 9287-5646
  JBoss, a division of Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070716/ad72f912/attachment.html 


More information about the rules-users mailing list