Sure, no problem.<br><br>Go to the package you require the globally shared asset to be within.<br><br>Select &quot;Create New Asset&quot; and then the option to import from the Global Area.<br><br>5.1.1 is *really* old and you&#39;re running a risk of getting next to little support here, as we concentrate our efforts on the later releases.<br>
<br>5.5.0.Final (or 5.4.0.Final if you don&#39;t want the latest and greatest) is vastly superior and I would recommend you giving it a try.<br><br>With kind regards,<br><br>Mike<br><br><div class="gmail_quote">On 4 December 2012 20:07, Dean Whisnant <span dir="ltr">&lt;<a href="mailto:dean@basys.com" target="_blank">dean@basys.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Michael,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Thank you for the answer, but can you give me an example of how I might be importing the Function from Global Area.  I’m assuming I would go the package screen for V222 (and other packages) and would use the Advanced view to add an import statement, but I’m not sure I understand how to form this import statement.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Thanks<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><br>Dean<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> <a href="mailto:rules-users-bounces@lists.jboss.org" target="_blank">rules-users-bounces@lists.jboss.org</a> [mailto:<a href="mailto:rules-users-bounces@lists.jboss.org" target="_blank">rules-users-bounces@lists.jboss.org</a>] <b>On Behalf Of </b>Michael Anstis<br>
<b>Sent:</b> Tuesday, December 04, 2012 3:01 PM<br><b>To:</b> Rules Users List<br><b>Subject:</b> Re: [rules-users] Guvnor and Global Functions<u></u><u></u></span></p><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Global Area is a place for shared assets.<br><br>This said, however, you still need to import them from the Global Area into individual packages.<br><br>Think of the import as a symlink\shortcut to the shared asset.<u></u><u></u></p>
<div><p class="MsoNormal">On 4 December 2012 19:51, Dean Whisnant &lt;<a href="mailto:dean@basys.com" target="_blank">dean@basys.com</a>&gt; wrote:<u></u><u></u></p><div><div><p class="MsoNormal"><span style="color:#1f497d">I’m using Drools/Guvnor version 5.1.1.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:#1f497d" lang="EN-IN"> </span><u></u><u></u></p><p class="MsoNormal"><span style="color:#1f497d" lang="EN-IN">In the Global Area of Guvnor, under functions, I’ve created a function called splitDiagnosis.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:#1f497d" lang="EN-IN"> </span><u></u><u></u></p><p class="MsoNormal"><span style="color:#1f497d" lang="EN-IN">In another package, we’ll call it V222, I have a rule called LoadDiag.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:#1f497d" lang="EN-IN"> </span><u></u><u></u></p><p class="MsoNormal"><span style="color:#1f497d" lang="EN-IN">In the Then section of the rule, I set the value of a field “=splitDiagnosis(diag,type)”</span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:#1f497d" lang="EN-IN"> </span><u></u><u></u></p><p class="MsoNormal"><span style="color:#1f497d" lang="EN-IN">When run through our live software, the rule errors out because it evidently does not see the global area.  If the rule is in the local package, then it works properly, but I have dozens of packages that all need access to this function and I don’t want to keep copying it from one package to another.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:#1f497d" lang="EN-IN"> </span><u></u><u></u></p><p class="MsoNormal"><span style="color:#1f497d" lang="EN-IN">I must be missing something to tell package V222 to include the global area.  Any thoughts?</span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:#1f497d" lang="EN-IN"> </span><u></u><u></u></p><p class="MsoNormal"><span style="color:#1f497d" lang="EN-IN">Thank you,</span><u></u><u></u></p><p class="MsoNormal"><span style="color:#1f497d" lang="EN-IN"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:#1f497d" lang="EN-IN">Dean Whisnant</span><u></u><u></u></p></div></div><p class="MsoNormal" style="margin-bottom:12.0pt"><br>_______________________________________________<br>rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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><u></u><u></u></p>
</div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div><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>
<br></blockquote></div><br>