[jboss-jira] [JBoss JIRA] Created: (JBRULES-2432) TemplateDataListener.newCell filters out correctly blank values; this leads to incorrect template processing

Denis Robert (JIRA) jira-events at lists.jboss.org
Tue Feb 16 07:27:11 EST 2010


TemplateDataListener.newCell filters out correctly blank values; this leads to incorrect template processing
------------------------------------------------------------------------------------------------------------

                 Key: JBRULES-2432
                 URL: https://jira.jboss.org/jira/browse/JBRULES-2432
             Project: Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: drools-core  (expert)
    Affects Versions: 5.0.1.FINAL
         Environment: Any
            Reporter: Denis Robert
            Assignee: Mark Proctor


When using a DataProviderCompiler(), a blank column returned by the DataProvider causes an entire line to not be outputted in the result. I tracked this to a line in TemplateDataListener.newCell which explicitly filters out blank cells, even though such cells should be allowed.

The template I'm using is:
<snip>
template header
ruleID
object
field
regexp
replacement

package standardization

import [removed].*

template std_rule
rule "@{ruleID}"
dialect "mvel"
when
	$o: @{object}()
then						
	$o.@{field} = $o.?@{field}.replaceFirst("@{regexp}", "@{replacement}");		
end

end template
<snip>

Whenever "replacement" is blank, the consequent does not get generated.



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

        



More information about the jboss-jira mailing list