The only way to do that in Guvnor is to add your model into the Global Area and then import the model in each of your packages using the "import from global area" option.<div><br></div><div>Best Regards, <br clear="all">
<br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>- Developer @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com </a><br>- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>
<br><br><div class="gmail_quote">On Thu, Dec 8, 2011 at 6:40 AM, srinivasasanda <span dir="ltr"><<a href="mailto:srinivasasanda@gmail.com">srinivasasanda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi All,<br>
<br>
I'm using Drools 5.0.1.I've declared two packages in Drools Guvnor<br>
Package1 and Package2.I declared one Model named as TestModel in Package1.<br>
<br>
Now,I created a business rule named as testrule in Package2.Now,while adding<br>
conditions to this rule in when clause,I need to get the TestModel from<br>
Package1.How it is possible?<br>
<br>
It means I should use the same Model across different rules in different<br>
packages.How it is possible.Please help me.I'm struggling in this..<br>
<br>
Thanks<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/How-to-use-single-Model-in-different-rules-across-different-packages-tp3569485p3569485.html" target="_blank">http://drools.46999.n3.nabble.com/How-to-use-single-Model-in-different-rules-across-different-packages-tp3569485p3569485.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>
</font></span></blockquote></div><br></div>