[rules-users] Problem with function

Guillaume Soldera guillaume.soldera at gmail.com
Fri Apr 25 09:15:28 EDT 2008


Hi !

I have a problem with functions in Drools file.
In a drl file, I defined a function, but a parameter of this function must
be "final". And the drl file don't compile...
this is my code :

[CODE]
function void changeName(final JOnAS jonas, Integer first)
{
....
}

[\CODE]


And this is the error  :

Syntax error on token "final", invalid Type

Is it possible to have a final variable as parameter in a function ?
Can you help me ?!

Thanks !

Cheers

Guillaume
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080425/9d573f01/attachment.html 


More information about the rules-users mailing list