Christopher G. Stach II wrote:
> Michael Neale wrote:
>> perhaps you can provide your rules and your interfaces? If the rules refer
>> to the interfaces, you will need to import them as well into the rule.
>>
>> Also, make sure that the interfaces are available on the classpath. But if
>> you can provide an example, it will save time trying to emulate from your
>> description.
>>
>
> Unfortunately I can't supply either since it's the core of this service.
> The interfaces are in the same project as the model classes that
> implement them, and are thus on the classpath. The interfaces are
> imported just like the model classes were at the top of the DRL file.
>
Okay, it seems to be something to do with inheritance between the
interfaces. This doesn't work:
package com.xxx.foo;
public interface Foo {
}
package com.xxx.foo.bar;
import com.xxx.foo.Foo;
public interface Bar
extends Foo
{
}
package com.xxx.foo;
import com.xxx.foo.Foo;
import com.xxx.foo.bar.Bar;
rule "Foo"
when
Foo()
then
System.err.println("Foo");
end
--
Christopher G. Stach II