On 25/06/2012, Zhao Yi <zhaoyi0...@gmail.com> wrote: > I have two drl files. They are in different packages. In one > drl(function.drl) file, I declare some functions and in the other > file(logic.drl), it needs to use these function. But when I build the drl > file, I always get the error when add logic.drl file. If I remove the > package in logic.drl, then it works fine. The functions will go into > default > package. How can I import the functions from other package name?
This is not possible. Use a Java static method instead; this can be imported. -W > > Thanks, > Zhao Yi > > -- > View this message in context: > http://drools.46999.n3.nabble.com/How-to-import-functions-from-other-package-tp4018218.html > Sent from the Drools: User forum mailing list archive at Nabble.com. > _______________________________________________ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > _______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users