[jboss-jira] [JBoss JIRA] Created: (JBRULES-1312) DSL mapping in JBossRules doesn't always work correctly.

Davy Toch (JIRA) jira-events at lists.jboss.org
Thu Nov 1 09:20:44 EDT 2007


DSL mapping in JBossRules doesn't always work correctly.
--------------------------------------------------------

                 Key: JBRULES-1312
                 URL: http://jira.jboss.com/jira/browse/JBRULES-1312
             Project: JBoss Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
    Affects Versions: 4.0.3
         Environment: - Windows XP
- tested with JDK 1.4 and JDK 1.5
            Reporter: Davy Toch


DSL mapping in 4.0.3 doesn't seem to work as expected (cf included JUnit testcase).

ruleBeforeExpansion : 

rule "x"
when
code 1041 occurs and sum of all digit not equal ( 1034 + 1035 )
then
TEST
end

ruleAfterExpansion : 
rule "x"
when
BBBBand sum of all digit not equal ( 1034 + 1035 )
then
System.out.println("DO_SOMETHING");
end

So the LHS matches the wrong 'when' DSL. As a comparison I did a test with JBossRules 3.0.6, which didn't pose a problem.


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