[rules-users] Drools Compile Error

Mark Proctor mproctor at codehaus.org
Fri Feb 22 17:36:15 EST 2008


you need to import the inner classes, look at the HelloWorld example 
which uses a nested Message object and see how it's imported. Inner 
classes definitely work, let me know if inner.inner classes don't.

Mark
Narendra Valada wrote:
> Hi,
>  
> I have a rule that looks like this :
>  
>
> package com.sample
>
>
> rule "Inner Class Test"
>
> when
>
> com.sample.OuterClass.InnerClass.InnerInnerClass( )
>
> then
>
> System.out.println( "" );
>
>
> end
>
> The inner class referenced by this rule is defined like this:
>
> package com.sample;
>
> public class OuterClass {
>
>    public class InnerClass {
>
>       public class InnerInnerClass { }
>
>    }
>
> }
>
> I am getting an error "Unable to resolve ObjectType 
> 'com.sample.OuterClass.InnerClass.InnerInnerClass'".
>
> What am I doing wrong? I am using XMLBeans-generated POJOs in my 
> application and these POJOS contain a lot of deeply nested inner 
> classes and these are giving me compile-errors in Drools.
>
> Thanks,
>
> Narendra
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080222/649991d8/attachment.html 


More information about the rules-users mailing list