Yes, I have registered it in a namespace-specific conf file, I have
verified that my consequence factory is being called, and it is
returning a valid consequence (assuming the definition of a valid
consequence is a non-null object that implements the Consequence
interface).   

It seems like it should be easy to track down, but it's not turning out
that way. :P

Thanks,
Jeff

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Dave B
Sent: Monday, November 21, 2005 6:45 PM
To: [email protected]
Subject: Re: [drools-user] Consequence firing

Have you:
- registered your consequence factory in a conf file?
- checked that your consequence factory is called?
- checked that your consequence factory returns a valid consequence?

I vaguely recall having a similar problem a couple of months ago, and
indeed remember that the solution was right under my nose -- but I can't
recall the details right now.  Will scan my code later today and let you
know if that rings any bells.

In any case, the debugger is your friend here, should be pretty easy to
track down.

Regards,
David



On 11/22/05, Segal, Jeffrey <[EMAIL PROTECTED]> wrote:
> I've been working on drools DSL for my particular project and have 
> overcome all of the classpath, naming convention issues, etc. that can

> come up when using a DSL.  The problem I am having is in getting my 
> consequences to fire.  Here is a sample of how my rules look:
>
>     <rule name="some rule name" salience="50">
>
>         <myNamespace:condition nodeName="node">
>             <myNamespace:aCondition anAttribute="some value"/>
>             <myNamespace:anotherCondition anotherAttribute="some other

> value">
>                 <myNamespace:subelement key="a key" value="a value"/>
>             </myNamespace:anotherCondition>
>         </myNamespace:condition>
>
>         <myNamespace:consequence nodeName="node">
>             <myNamespace:myConsequence anAttribute="a value">
>                 <myNamespace:subelement key="a key" value="a value"/>
>             </myNamespace:myConsequence>
>         </myNamespace:consequence>
>
>     </rule>
>
>
> When I assert objects, my conditions are firing as expected and 
> without exception.  However, I'm not seeing any conditions fire, even 
> when all of the conditions are true.  I.e., isAllowed() is returning 
> true for conditions "aCondition" and "anotherCondition", but the 
> invoke() method of "myConsequence" is not being called.  Even when I 
> set my isAllowed() methods to always return true, my invoke() methods
are never reached.
> Xerces has no problem validating my XML against my schema, so I'm at a

> loss as to what would be causing this.
>
> Maybe the solution is right under my nose...any ideas?
>
> Thanks,
> Jeff
>

Reply via email to