<div dir="ltr">You'd need the include the package header in the rule file.<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 19 December 2013 07:54, wtang <span dir="ltr"><<a href="mailto:wtang@kana.com" target="_blank">wtang@kana.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks David, but I am not at the code level yet. I am using latest version<br>
6.0.<br>
<br>
In the declares.drl I have:<br>
<br>
package com.sample<br>
<br>
declare Person<br>
first : String;<br>
last : String;<br>
address: Address<br>
end<br>
<br>
in the userDeclare.drl I have a rule using Person in the when clause but it<br>
does not compile on the drools Ecliple plugin saying it can no resolve the<br>
person object.<br>
<br>
import com.sample.*<br>
<br>
rule "Hello World"<br>
when<br>
Person(first == "Wing")<br>
then<br>
System.out.println("hello");<br>
end<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/separating-drl-declare-type-from-actual-drl-rule-into-each-own-file-tp4027359p4027363.html" target="_blank">http://drools.46999.n3.nabble.com/separating-drl-declare-type-from-actual-drl-rule-into-each-own-file-tp4027359p4027363.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br></div>