[jboss-jira] [JBoss JIRA] Reopened: (JBRULES-273) Nesting function calls, and functions calling anther function

Edson Tirelli (JIRA) jira-events at lists.jboss.org
Wed Mar 28 15:31:23 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBRULES-273?page=all ]

Edson Tirelli reopened JBRULES-273:
-----------------------------------

             
Apply the fix for 3.0.x branch:

http://fisheye.jboss.org/viewrep/JBossRules/trunk/drools-compiler/src/main/java/org/drools/semantics/java/FunctionBuilder.java?r1=4491&r2=6069


> Nesting function calls, and functions calling anther function
> -------------------------------------------------------------
>
>                 Key: JBRULES-273
>                 URL: http://jira.jboss.com/jira/browse/JBRULES-273
>             Project: JBoss Rules
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: Drl Parser/Builder
>            Reporter: Michael Neale
>         Assigned To: Michael Neale
>             Fix For: 3.0-rc3
>
>         Attachments: FunctionBuilder.java, FunctionFixer.java
>
>
> Ricardo Barone (ricardo.barone at auster.com.br) contributed some improvements around function handling.
> I've applied a couple of small changes that enables to 1) call a function from the body of another function (same DRL) and 2) call a function inside the parameter of another method call as in:
> rule
>   when
>     ...
>   then
>     if ( function1() ) {
> 	   System.out.println( function2() );
>     }
> end
> In FunctionFixer, I've changed "matcher.find()" to "matcher.find(startIndex)" to be able to search inside method parameters (after a '(').
> In FunctionBuilder, I've changed "functionDescr.getText()" to "functionFixer.fix(functionDescr.getText())".
> Since FunctionFixer is temporary, I don't know if you'll want to add those.
>  Ricardo

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list