Packages in Guvnor (and Drools for that matter) are just containers to collate related things.<br><br>A package compiled within Guvnor will contain all assets within the package, and only that package: no inheritance etc.<br>
<br>The fact that a package name is its parent&#39;s name plus some suffix (e.g. parent.child) has no significance to Guvnor (or Drools).<br><br>How you want to use packages to bundle your rules is up to you really. You might prefer to split as you have based on vehicle type, however you might equally find one package holding rules that change infrequently (e.g. rules relating to taxation etc) and another holding frequently changing rules (e.g. weather conditions). You could then build and deploy the frequently changing rules without fear of affecting the infrequently changing rules.<br>
<br>With kind regards,<br><br>Mike<br><br><div class="gmail_quote">On 7 January 2013 20:03, dunnlow <span dir="ltr">&lt;<a href="mailto:dunnlow@yahoo.com" target="_blank">dunnlow@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I&#39;ve been using Guvnor for a while (on v5.4) now.  However, I&#39;ve always had<br>
everything in one &quot;package.&quot;  As my project grows however I am looking to<br>
improve the organization of my assets - it is getting harder and harder for<br>
me to find in Guvnor the rule I am looking for.  As I looked into this it<br>
occurred to me that I don&#39;t really understand the concept/purpose of a<br>
package.<br>
<br>
For example, I have a main package,   &quot;Auto&quot; that contains generic<br>
rules/assets for automobiles.  I have assets specific to types of autos, so<br>
I created packages &quot;Auto.Compact&quot; and  &quot;Auto.Sedan&quot;.  Those packages are<br>
created neatly under the Auto Package.  However, when I looked at the source<br>
for Auto, I expected to see the source for assets in Auto, Auto.Compact and<br>
Auto.Sedan, but it only contains the source for Auto (rather than having<br>
them rolled up).<br>
<br>
I&#39;m a java developer, so I expected the same sort of &quot;package&quot;<br>
functionality; all of the sub packages being contained within the main<br>
package.<br>
<br>
FYI, I have a drools server that connects to Guvnor to obtain/create the<br>
most recent rule base.<br>
<br>
I have Drools Dev Cookbook, and looked through the online guide, but didn&#39;t<br>
really find anything to help.<br>
Can anyone explain to me the purpose/intention of a package (or point me to<br>
some good documentation about it).<br>
<br>
Any best practices out there on how to organize assets.<br>
<br>
Thanks very much,<br>
-J<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/How-do-you-use-packages-in-Guvnor-tp4021386.html" target="_blank">http://drools.46999.n3.nabble.com/How-do-you-use-packages-in-Guvnor-tp4021386.html</a><br>

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>
</blockquote></div><br>