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.

On 5/5/06, Christopher G. Stach II <[EMAIL PROTECTED]> wrote:

Michael Neale wrote:
> not sure, that should work.. .there are tests for interfaces
specifically.
> Need more information.
>
> On 5/4/06, Christopher G. Stach II <[EMAIL PROTECTED]> wrote:
>>
>> When I'm writing my rules, it looks like I can't use interfaces in the
>> ``when'' clause.  The implementation classes work fine, however.  It
>> looks like the imports don't work at all.  Any ideas?
>>
>> --
>> Christopher G. Stach II
>>
>

I don't really know how to provide more information.  I am running my
test driver in Eclipse.  It is using classes from another project and it
finds the concrete classes just fine.  The interfaces are in the same
project, but a different package.


May 4, 2006 3:57:40 PM com.xxx.foo.DroolsTest main
INFO: Starting Drools tests...
org.drools.rule.InvalidRulePackage: Rule Compilation error The import
com.xxx.foo.bar cannot be resolved The import com.xxx.foo.bar cannot be
reso
lved The import com.xxx.foo.bar cannot be resolved The import
com.xxx.foo.bar cannot be resolved The import com.xxx.foo.bar cannot be
resol
ved The import com.xxx.foo.bar cannot be resolved The import
com.xxx.foo.bar cannot be resolved
Rule Compilation error The import com.xxx.foo.bar cannot be resolved The
import com.xxx.foo.bar cannot be resolved The import com.xxx.foo.bar
cannot be resolved The import com.xxx.foo.bar cannot be resolved The i
mport com.xxx.foo.bar cannot be resolved The import com.xxx.foo.bar
cannot be resolved The import com.xxx.foo.bar cannot be resolved
Rule Compilation error The import com.xxx.foo.bar cannot be resolved The
import com.xxx.foo.bar cannot be resolved The import com.xxx.foo.bar
cannot be resolved The import com.xxx.foo.bar cannot be resolved The i
mport com.xxx.foo.bar cannot be resolved The import com.xxx.foo.bar
cannot be resolved The import com.xxx.foo.bar cannot be resolved
Rule Compilation error The import com.xxx.foo.bar cannot be resolved The
import com.xxx.foo.bar cannot be resolved The import com.xxx.foo.bar
cannot be resolved The import com.xxx.foo.bar cannot be resolved The i
mport com.xxx.foo.bar cannot be resolved The import com.xxx.foo.bar
cannot be resolved The import com.xxx.foo.bar cannot be resolved
Rule Compilation error The import com.xxx.foo.bar cannot be resolved The
import com.xxx.foo.bar cannot be resolved The import com.xxx.foo.bar
cannot be resolved The import com.xxx.foo.bar cannot be resolved The i
mport com.xxx.foo.bar cannot be resolved The import com.xxx.foo.bar
cannot be resolved The import com.xxx.foo.bar cannot be resolved
Rule Compilation error The import com.xxx.foo.bar cannot be resolved The
import com.xxx.foo.bar cannot be resolved The import com.xxx.foo.bar
cannot be resolved The import com.xxx.foo.bar cannot be resolved The i
mport com.xxx.foo.bar cannot be resolved The import com.xxx.foo.bar
cannot be resolved The import com.xxx.foo.bar cannot be resolved
Rule Compilation error The import com.xxx.foo.bar cannot be resolved The
import com.xxx.foo.bar cannot be resolved The import com.xxx.foo.bar
cannot be resolved The import com.xxx.foo.bar cannot be resolved The i
mport com.xxx.foo.bar cannot be resolved The import com.xxx.foo.bar
cannot be resolved The import com.xxx.foo.bar cannot be resolved
Rule Compilation error The import com.xxx.foo.bar cannot be resolved The
import com.xxx.foo.bar cannot be resolved The import com.xxx.foo.bar
cannot be resolved The import com.xxx.foo.bar cannot be resolved The i
mport com.xxx.foo.bar cannot be resolved The import com.xxx.foo.bar
cannot be resolved The import com.xxx.foo.bar cannot be resolved

        at org.drools.rule.Package.checkValidity(Package.java:378)
        at org.drools.reteoo.RuleBaseImpl.addPackage(RuleBaseImpl.java
:303)
        at com.xxx.foo.DroolsTest.readRule(DroolsTest.java:113)
        at com.xxx.foo.DroolsTest.testDrools(DroolsTest.java:56)
        at com.xxx.foo.DroolsTest.main(DroolsTest.java:43)

--
Christopher G. Stach II

Reply via email to