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.<br><br>
<div class="gmail_quote">On 4 December 2012 19:51, 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="color:#1f497d">I’m using Drools/Guvnor version 5.1.1.<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d" lang="EN-IN"><u></u> <u></u></span></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.<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d" lang="EN-IN"><u></u> <u></u></span></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.<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d" lang="EN-IN"><u></u> <u></u></span></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)”<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d" lang="EN-IN"><u></u> <u></u></span></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.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d" lang="EN-IN"><u></u> <u></u></span></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?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d" lang="EN-IN"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:#1f497d" lang="EN-IN">Thank you,<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d" lang="EN-IN"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d" lang="EN-IN">Dean Whisnant<u></u><u></u></span></p></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>