[rules-users] Problem with function
Mark Proctor
mproctor at codehaus.org
Fri Apr 25 10:05:51 EDT 2008
Guillaume Soldera wrote:
> 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...
No the parser does not support this.
> 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
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080425/9d8b93ac/attachment.html
More information about the rules-users
mailing list