<div dir="ltr">Nope, I still have a problem after building and deploying the project (without validation, since that would fail).<div>When my application receives the new package, an exception is thrown saying:</div><div>unable to resolve method using strict-mode: org.drools.core.spi.KnowledgeHelper.logRule<br>
</div><div><br></div><div>My action from the decision table is quite simple:</div><div>logRule(&quot;@{rule}&quot;, $level); //level is a class from my application</div><div>and in the row (the rule) I set it to &lt;Test Rule&gt;.</div>
<div><br></div><div>The drl contains (only) the function:</div><div><div>function void logRule(String rule, Level level) {</div><div>    System.out.println(&quot;Matched rule: &quot;+rule+&quot; for level:&quot;+level);</div>
<div>}</div></div><div><br></div><div>I tried to call the function using FunctionName.functionName pattern, as well as &lt;package_name&gt;.FunctionName.functionName pattern, without any success.</div></div><div class="gmail_extra">
<br clear="all"><div><div dir="ltr">Ευχαριστώ πολύ,<br>   Ιωάννης Χριστοδούλου</div></div>
<br><br><div class="gmail_quote">On Mon, Mar 17, 2014 at 2:58 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">
<div dir="ltr">OK.<div><br></div><div>If validation failed, this is a known issue - we just validate the single decision table without including &quot;external&quot; resources (such as the function, if a different DRL file).</div>

<div><br></div><div>If you save the decision table it should be OK - i.e. no errors shown in the &quot;Problems Panel&quot; (this is because this uses a different mechanism to the &quot;validation&quot; function).</div><div>

<br></div><div>The issue is recorded here: <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1075039" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=1075039</a> and a related one here: <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1071205" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=1071205</a></div>

</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On 17 March 2014 12:01, Ioannis Christodoulou <span dir="ltr">&lt;<a href="mailto:io.christod@gmail.com" target="_blank">io.christod@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"><div dir="ltr">Yes, I cannot find any possible way to declare a function.<div><br><div>So, I declared it inside a dlr file (the validation succeeded) and tried to call it from the &#39;action&#39; column of the guided decision table.</div>


</div><div>The validation on the guided decision table failed, saying that it could not analyze the function call expression.</div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr">Ευχαριστώ πολύ,<br>   Ιωάννης Χριστοδούλου</div>


</div><div><div>
<br><br><div class="gmail_quote">On Mon, Mar 17, 2014 at 12:45 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">


<div dir="ltr"><div>&quot;<span style="font-family:arial,sans-serif;font-size:13px">The problem is that I cannot find a way to declare the function and make it visible from the guided&quot;</span><div><span style="font-family:arial,sans-serif;font-size:13px"><br>



</span></div></div><div><span style="font-family:arial,sans-serif;font-size:13px">What does this mean exactly? Are you getting a validation error when clicking the &quot;validate&quot; button? Did you expect to see a function listed somewhere?</span></div>



</div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On 17 March 2014 10:25, Ioannis Christodoulou <span dir="ltr">&lt;<a href="mailto:io.christod@gmail.com" target="_blank">io.christod@gmail.com</a>&gt;</span> wrote:<br>



</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hello everyone.
<div>I&#39;m using the latest kie workbench and I have created a guided decision table.</div><div>I want to create a function and call it from an action of the guided decision table.</div><div><br></div><div>The problem is that I cannot find a way to declare the function and make it visible from the guided</div>




<div>decision table. I have tried declaring it in a drl file, as well as in a dsl definition without success (the error is that drools cannot analyze the function call expression).</div><div><br></div><div>Has anyone solved this issue before?</div>




<div><br></div><div>Kind regards.</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></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></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></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>