<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
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.<br>
<br>
Mark<br>
Narendra Valada wrote:
<blockquote
cite="mid:aea77c910802221228y6354dfe2mf3e9bdffcf64d08a@mail.gmail.com"
type="cite">
<div>Hi,</div>
<div> </div>
<div>I have a rule that looks like this :</div>
<div> </div>
<div>
<p>package com.sample</p>
<p><br>
rule "Inner Class Test"</p>
<p>when</p>
<p>com.sample.OuterClass.InnerClass.InnerInnerClass( )</p>
<p>then</p>
<p>System.out.println( "" ); </p>
<p><br>
end<br>
</p>
<p>The inner class referenced by this rule is defined like this:</p>
<p>package com.sample;</p>
<p>public class OuterClass {</p>
<p> public class InnerClass {</p>
<p> public class InnerInnerClass { }</p>
<p> }</p>
<p>}</p>
<p>I am getting an error "Unable to resolve ObjectType
'com.sample.OuterClass.InnerClass.InnerInnerClass'".</p>
<p>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.</p>
<p>Thanks,</p>
<p>Narendra<br>
</p>
</div>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<br>
</body>
</html>