[jboss-jira] [JBoss JIRA] Updated: (JBRULES-938) Conditions with multiple parameters aren't always correctly parsed in decision tables

Fabien Lafarge (JIRA) jira-events at lists.jboss.org
Thu Jun 21 04:23:52 EDT 2007


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

Fabien Lafarge updated JBRULES-938:
-----------------------------------

    Description: 
When the first parameter ($1) is present at the beginning of a condition (example rule:  "$1! = $2"), SpreadsheetCompiler will not replace parameters with their values

in SnippetBuilder.build(...), shouldn't 

  if ( this._template.indexOf( SnippetBuilder.PARAM_PREFIX + "1" ) > 0 ) {

be replaced with 

  if ( this._template.indexOf( SnippetBuilder.PARAM_PREFIX + "1" ) >= 0 ) {

?


  was:
When the first parameter ($1) is present at the beginning of a condition (example rule:  "$1! = $2"), SpreadsheetCompiler will not replace parameters with their values

in SnippetBuilder.build(...), shouldn't 

  if ( this._template.indexOf( SnippetBuilder.PARAM_PREFIX + "1" ) == 0 ) {

be replaced with 

  if ( this._template.indexOf( SnippetBuilder.PARAM_PREFIX + "1" ) >= 0 ) {

?



> Conditions with multiple parameters aren't always correctly parsed in decision tables
> -------------------------------------------------------------------------------------
>
>                 Key: JBRULES-938
>                 URL: http://jira.jboss.com/jira/browse/JBRULES-938
>             Project: JBoss Rules
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Decision tables
>    Affects Versions: 4.0.0.MR2, 3.0.6
>            Reporter: Fabien Lafarge
>         Assigned To: Mark Proctor
>
> When the first parameter ($1) is present at the beginning of a condition (example rule:  "$1! = $2"), SpreadsheetCompiler will not replace parameters with their values
> in SnippetBuilder.build(...), shouldn't 
>   if ( this._template.indexOf( SnippetBuilder.PARAM_PREFIX + "1" ) > 0 ) {
> be replaced with 
>   if ( this._template.indexOf( SnippetBuilder.PARAM_PREFIX + "1" ) >= 0 ) {
> ?

-- 
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