It could be the imports - I'd definitely recommend setting them on the
package configuration in Guvnor.
However it's possibly (more likely) a bug in Guvnor as the "Global Area"
doesn't "have" a package and hence I suspect there are no imports to
specify.
Please try and report back - if it still fails I suggest raising a JIRA
(for GUVNOR,
https://issues.jboss.org/browse/GUVNOR) and attach a
repository demonstrating the issue.
With kind regards,
Mike
On 31 October 2012 20:42, Davide Sottara <dsotty(a)gmail.com> wrote:
Oh right, I should have read more carefully :)
Drools is package-oriented, so in technical DRL you should do:
------------------------------
package datamodel;
declare MyEvent
end
------------------------------
package p1;
import datamodel.MyEvent
rule r1 when MyEvent() then .. end
------------------------------
package p1;
import datamodel.MyEvent
rule r2 when MyEvent() then .. end
Someone from the guvnor team might clarify whether imports need to be
implicit or explicit :)
Best
Davide
p.s. if no package is specified, Drools assumes "defaultpkg" as package
--
View this message in context:
http://drools.46999.n3.nabble.com/Problem-sharing-declarative-model-betwe...
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