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

Edson Tirelli tirelli at post.com
Mon Jul 16 20:06:45 EDT 2007


   Can you wrap that in a zip so I can investigate here?
   We have tests for the use of globals, so they work fine... not sure why
you are having problems.

    []s
    Edson

2007/7/16, Mike Vargo <mike.vargo at chromeriver.com>:
>
>  It is in the same package…
>
>
>
> *From:* rules-users-bounces at lists.jboss.org [mailto:
> rules-users-bounces at lists.jboss.org] *On Behalf Of *Edson Tirelli
> *Sent:* Monday, July 16, 2007 4:35 PM
> *To:* Rules Users List
> *Subject:* Re: [rules-users] simple rule with global var causing errors.
>
>
>
>
>   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
>
> _______________________________________________
> 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/8895d197/attachment.html 


More information about the rules-users mailing list