[jboss-jira] [JBoss JIRA] Updated: (JBRULES-1312) DSL mapping in JBossRules doesn't always work correctly.
Davy Toch (JIRA)
jira-events at lists.jboss.org
Thu Nov 1 09:22:44 EDT 2007
[ http://jira.jboss.com/jira/browse/JBRULES-1312?page=all ]
Davy Toch updated JBRULES-1312:
-------------------------------
Attachment: DroolsExpansionUnitTest.java
JUnit testcase to illustrate the DSL mapping problem in JBossRules 4.0.3. Also the testcase for JBossRules 3.0.6 is included in comments for comparison.
> 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
> Attachments: DroolsExpansionUnitTest.java
>
>
> 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