<div dir="ltr">Actually any change that builds another package will cause the kiescanner to report errors on analysing the &#39;<span style="font-family:arial,sans-serif;font-size:13px">myFunctionCall(myGlobalList);&#39; expression.</span><div>
<span style="font-family:arial,sans-serif;font-size:13px">e.g. change </span></div><div><span style="font-family:arial,sans-serif;font-size:13px">System.out.println(&quot;List contains:&quot;+list);  ===&gt; System.out.println(&quot;Global List Variable contains:&quot;+list);</span></div>
</div><div class="gmail_extra"><br clear="all"><div><div dir="ltr">Ευχαριστώ πολύ,<br>   Ιωάννης Χριστοδούλου</div></div>
<br><br><div class="gmail_quote">On Thu, Mar 20, 2014 at 11:46 PM, Michael Anstis <span dir="ltr">&lt;<a href="mailto:michael.anstis@gmail.com" target="_blank">michael.anstis@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p dir="ltr">Are those the initial definitions?</p>
<p dir="ltr">What changes to cause KieScanner to report errors?</p>
<p dir="ltr">Sent on the move</p><div class="HOEnZb"><div class="h5">
<div class="gmail_quote">On 20 Mar 2014 21:34, &quot;Ioannis Christodoulou&quot; &lt;<a href="mailto:io.christod@gmail.com" target="_blank">io.christod@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">I can&#39;t really make a unit test, but I can provide example drl:<div>Assuming that the rule project contains a guided decision table and a drl file:</div><div>Guided Decision Table producing drl:</div><div>


rule &quot;guided rule&quot;</div><div>when</div><div>then</div><div>  myFunctionCall(myGlobalList);</div><div>end</div><div class="gmail_extra"><br></div><div class="gmail_extra">The drl file:</div><div class="gmail_extra">


import java.util.List;</div><div class="gmail_extra">global java.util.List myGlobalList;</div><div class="gmail_extra"><br></div><div class="gmail_extra">function void myFunctionCall(List aList) {</div><div class="gmail_extra">


  System.out.println(&quot;List contains:&quot;+list);</div><div class="gmail_extra">}<br><br>the rules are initiated by calling:</div><div class="gmail_extra">KieSession ksession = ....</div><div class="gmail_extra">List globalList = new ArrayList();</div>


<div class="gmail_extra">ksession.setGlobal(&quot;myGlobalList&quot;, globalList);</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_quote">On Thu, Mar 20, 2014 at 9:23 PM, Michael Anstis <span dir="ltr">&lt;<a href="mailto:michael.anstis@gmail.com" target="_blank">michael.anstis@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><p dir="ltr">Ok.</p>
<p dir="ltr">You are correct (1) is a known issue that I am working on at the moment. </p>
<p dir="ltr">Can you give illustrative DRL for the original rule and updated rule that causes problems for (2). It would help understand what could be the cause (or submit a pull request containing a unit test).</p>
<p dir="ltr">Sent on the move</p><div><div>
<div class="gmail_quote">On 20 Mar 2014 19:20, &quot;Ioannis Christodoulou&quot; &lt;<a href="mailto:io.christod@gmail.com" target="_blank">io.christod@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">



<div dir="ltr">Well, only the second actually, since my understanding (from a previous question I sent) is that the first is a known thing (issue?).<div>KieScanner loads the rules project without any issues the first time (upon application startup) but shows a validation error if the rules project is updated (minor update, definitely not causing a validation error),</div>




<div>reporting that it cannot Analyze the expressions involving the global variable and the function.</div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr">Ευχαριστώ πολύ,<br>   Ιωάννης Χριστοδούλου</div>




</div>
<br><br><div class="gmail_quote">On Thu, Mar 20, 2014 at 9:02 PM, Michael Anstis <span dir="ltr">&lt;<a href="mailto:michael.anstis@gmail.com" target="_blank">michael.anstis@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">




<p dir="ltr">From what I can gather from your email there are two problems. Please confirm and then we can comment further:</p>
<p dir="ltr">(1) Validation of a guided decision table, that uses a global, reports a validation error.</p>
<p dir="ltr">(2) Changes to the decision table&#39;s use of a global is not being detected bt KieScanner.</p>
<p dir="ltr">Sent on the move</p>
<div class="gmail_quote"><div><div>On 20 Mar 2014 11:28, &quot;Ioannis Christodoulou&quot; &lt;<a href="mailto:io.christod@gmail.com" target="_blank">io.christod@gmail.com</a>&gt; wrote:<br type="attribution">
</div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div>
<div dir="ltr">In my java ee application, I use drools 6.1.0.Beta1, deployed on jboss eap 6.2 (I have also deployed Kie Workbench 6.0.1.Final).<div><br></div><div>In order to get the latest updates on my rules (made on kie wb) I tried to set kiescanner to &quot;LATEST&quot;. This seems to not be working always (I&#39;m not 100% sure about the reason, it seems to happen when I have not re-deployed the jar with the model classes I use in my rules, or I have not clicked on build&amp;deploy of the rules project), so I have reverted to using &quot;1.0&quot; as the version and not changing the version when I update the rules project.</div>






<div><br></div><div>There is an issue with the application not validating, because I have a guided decision table which uses a global variable and a function, but that seems to not be an error after all (everything seems to build as it should).</div>






<div><br></div><div>However, while my application is running (and watching for updates through scanner), if I make an update and deploy the rules project again, the application retrieves the update and fails with a validation error about not being able to analyse the expressions regarding the global function and the global variable.</div>






<div><br></div><div>Any suggestions?</div><div><br></div><div>Thank you very much.<br>
<div><br></div></div></div>
<br></div></div>_______________________________________________<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><br></blockquote></div>
<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><br></blockquote></div><br></div>
<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><br></blockquote></div>
</div></div><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><br></blockquote></div><br></div></div>
<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><br></blockquote></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></blockquote></div><br></div>