To import a class B nested in class x.y.A, you'd use
import x.y.A.B
(Actually, '$' is legal in Java names, so there must be another reason
for not being able to resolve a name.)
-W
On 23/04/2012, TonyN <tony.n.nguyen(a)boeing.com> wrote:
Hi,
I have nested classes in the domain model and I imported these nested
classes in order to use them in the guided editor. Things are ok except
when one of the rule required a custom java function, then I would get an
error at 'build' package time (the error is 'not able to resolve
TcItem$Dataset'). I think the compiler didn't like the '$' in the list
of
imported statements. But if I don't import these nested classes, I won't be
able to use them in the guided editor.
I am new to Drools so I think there must be a way to be able to use nested
class (w/ '$') and custom java functions together.
Please advise.
I am using Guvnor 5.2 final.
Thanks.
--
View this message in context:
http://drools.46999.n3.nabble.com/Nested-class-BRL-and-Java-error-tp39324...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users