You don&#39;t need to create a global.<br><br>You do however need to add an import for the class in the POJO JAR.<br><br>This can be accomplished on the same screen. Ensure you save the package after adding the import.<br>
<br>Ideally, when importing a POJO model from the Global Area, the imports should be added automatically.<br><br>Please feel free to raise a JIRA at <a href="https://issues.jboss.org/browse/GUVNOR">https://issues.jboss.org/browse/GUVNOR</a> requesting this feature if you like.<br>
<br>With kind regards,<br><br>Mike<br><br><div class="gmail_quote">On 3 July 2012 14:40, 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>
To /use a POJO model in a specific package after importing /it from Global,<br>
/we need to create a Global variable inside the EDIT -&gt; Configuration part<br>
of the package/...<br>
Only after this is done can i make rules inside the package using the<br>
imported model..<br>
<br>
But, in drools-expert doc its said that &quot;/It is strongly discouraged to set<br>
or change a global value from inside your rules/&quot;..and...&quot;/Globals are not<br>
designed to share data between rules and they should never be used for that<br>
purpose/&quot;<br>
<br>
but again you told me that &quot;/*Rules are assets so the same principle<br>
<div class="im">applies: if you have a rule you want to share in multiple packages, define<br>
it in the the Global Area and then import it into the packages in which it<br>
</div>is needed*/&quot;<br>
<br>
<br>
M a bit confused..can yu please explain !!<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Guvnor-Help-tp4018290p4018429.html" target="_blank">http://drools.46999.n3.nabble.com/Guvnor-Help-tp4018290p4018429.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>