<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Guillaume Soldera wrote:
<blockquote
 cite="mid:66adc30a0804250615l7e259a53jb24e168e424bc66@mail.gmail.com"
 type="cite">Hi !<br>
  <br>
I have a problem with functions in Drools file.<br>
In a drl file, I defined a function, but a parameter of this function
must be "final". And the drl file don't compile...<br>
</blockquote>
No the parser does not support this.<br>
<blockquote
 cite="mid:66adc30a0804250615l7e259a53jb24e168e424bc66@mail.gmail.com"
 type="cite">this is my code : <br>
  <br>
[CODE]<br>
function void changeName(final JOnAS jonas, Integer first)<br>
{<br>
....<br>
}<br>
  <br>
[\CODE]<br>
  <br>
  <br>
And this is the error&nbsp; : <br>
  <br>
Syntax error on token "final", invalid Type<br>
  <br>
Is it possible to have a final variable as parameter in a function ?<br>
Can you help me ?!<br>
  <br>
Thanks !<br>
  <br>
Cheers<br>
  <br>
Guillaume<br>
  <br>
  <br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
  </pre>
</blockquote>
<br>
</body>
</html>