You'd need the include the package header in the rule file.
On 19 December 2013 07:54, wtang <wtang(a)kana.com> wrote:
Thanks David, but I am not at the code level yet. I am using latest
version
6.0.
In the declares.drl I have:
package com.sample
declare Person
first : String;
last : String;
address: Address
end
in the userDeclare.drl I have a rule using Person in the when clause but it
does not compile on the drools Ecliple plugin saying it can no resolve the
person object.
import com.sample.*
rule "Hello World"
when
Person(first == "Wing")
then
System.out.println("hello");
end
--
View this message in context:
http://drools.46999.n3.nabble.com/separating-drl-declare-type-from-actual...
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