Hi,<br><br>You&#39;re basically right, but your terminology confused.<br><br>Firstly, I&#39;d be surprised if the package in Guvnor would compile without importing the POJO Model from the Global Area into package XYZ.<br><br>
When attempting to compile package XYZ with rule &quot;age and status&quot; the Classes used therein will not be found and hence compilation fail.<br><br>Secondly, the &quot;Model&quot; (whether POJO, as you are doing, or otherwise) contains Classes. Not Objects. Nothing will fire even if everything else is correct.<br>
<br>If you have not already done so, and I am beginning to feel you have not, please read the Drools Expert user-guide. This explains how the Rule Engine functions.<br><br>Thirdly, an example of where you might want to share a single POJO Model between packages could be:-<br>
<br>Mortgage Model containing Classes for: Applicant, Property, MortgageOffer<br><br>Packages: org.yourco.mortgages.england.south, org.yourco.mortgages.england.north, org.yourco.mortgages.england.west, org.yourco.mortgages.england.east<br>
<br>With kind regards,<br><br>Mike<br><br><div class="gmail_quote">On 28 June 2012 09:49, abhinay_agarwal <span dir="ltr">&lt;<a href="mailto:abhinay_agarwal@infosys.com" target="_blank">abhinay_agarwal@infosys.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hey mike,<br>
<br>
Rules are applied on the POJO models which we upload, nw if i upload a model<br>
in global area n write a rule based on it.<br>
<br>
Now, if i import the rule in any package, i would need the pojo model in the<br>
package..isn&#39;t it ?<br>
<br>
Because if i dont have data, then where m i supposed to apply rules on ??<br>
<br>
for example:<br>
<br>
I upload into global a jar og the following class<br>
<br>
public class person<br>
{<br>
      private int age;<br>
      private String status;<br>
// getters and setters;<br>
}<br>
<br>
i make a rule in global area:<br>
<br>
rule &quot;age and status&quot;<br>
   when<br>
         $p: Person(age&gt;18)<br>
   then<br>
          $p.status=&quot;accepted&quot;<br>
end<br>
<br>
Now i import the rule in package XYZ, bt ma package doesnt have the POJO<br>
model,<br>
now the rule in the package XYZ is a waste..ri8 ?? coz it will neva be<br>
fired..<br>
<br>
Can you give me an exmple where i would like to use a POJO model in two<br>
different packages!!!<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Guvnor-Help-tp4018290p4018311.html" target="_blank">http://drools.46999.n3.nabble.com/Guvnor-Help-tp4018290p4018311.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>