[rules-users] Problem sharing declarative model between two packages
Davide Sottara
dsotty at gmail.com
Wed Oct 31 16:42:35 EDT 2012
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-between-two-packages-tp4020628p4020632.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
More information about the rules-users
mailing list