It could be the imports - I&#39;d definitely recommend setting them on the package configuration in Guvnor.<br><br>However it&#39;s possibly (more likely) a bug in Guvnor as the &quot;Global Area&quot; doesn&#39;t &quot;have&quot; a package and hence I suspect there are no imports to specify.<br>
<br>Please try and report back - if it still fails I suggest raising a JIRA (for GUVNOR, <a href="https://issues.jboss.org/browse/GUVNOR">https://issues.jboss.org/browse/GUVNOR</a>) and attach a repository demonstrating the issue.<br>
<br>With kind regards,<br><br>Mike<br><br><div class="gmail_quote">On 31 October 2012 20:42, Davide Sottara <span dir="ltr">&lt;<a href="mailto:dsotty@gmail.com" target="_blank">dsotty@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Oh right, I should have read more carefully :)<br>
Drools is package-oriented, so in technical DRL you should do:<br>
<br>
------------------------------<br>
package datamodel;<br>
<br>
declare MyEvent<br>
end<br>
<br>
------------------------------<br>
<br>
package p1;<br>
import datamodel.MyEvent<br>
rule r1 when MyEvent() then .. end<br>
<br>
------------------------------<br>
<br>
package p1;<br>
import datamodel.MyEvent<br>
rule r2 when MyEvent() then .. end<br>
<br>
<br>
Someone from the guvnor team might clarify whether imports need to be<br>
implicit or explicit :)<br>
<br>
Best<br>
Davide<br>
<br>
p.s. if no package is specified, Drools assumes &quot;defaultpkg&quot; as package<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Problem-sharing-declarative-model-between-two-packages-tp4020628p4020632.html" target="_blank">http://drools.46999.n3.nabble.com/Problem-sharing-declarative-model-between-two-packages-tp4020628p4020632.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>