[
http://jira.jboss.com/jira/browse/JBRULES-565?page=all ]
Edson Tirelli closed JBRULES-565.
---------------------------------
Fix Version/s: 3.1-m1
Resolution: Done
The problem was a typo in the StringEvaluators. Fixed and improved unit test coverage.
Commited into trunk in revision #7718:
$ svn commit -m "JBRULES-565: fixed problem with evaluators and improved unit test
coverage" drools-core/src/
Sending drools-core/src/main/java/org/drools/base/FieldFactory.java
Sending
drools-core/src/main/java/org/drools/base/evaluators/BigDecimalFactory.java
Sending drools-core/src/main/java/org/drools/base/evaluators/StringFactory.java
Sending drools-core/src/test/java/org/drools/base/EvaluatorFactoryTest.java
Transmitting file data ....
Committed revision 7718.
Thank you for reporting and providing test case. Please let us know if you find any other
problem.
String contraints not working
------------------------------
Key: JBRULES-565
URL:
http://jira.jboss.com/jira/browse/JBRULES-565
Project: JBoss Rules
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 3.0.5
Environment: Java5, in Linux and Windows
Reporter: Marcos Tengelmann
Assigned To: Edson Tirelli
Fix For: 3.1-m1
With These classes
Public Class Account {
public String getAccountState() {...}
}
Public Class Receipt {
public String getReceiptState() {...}
}
RULE "DIFFERENT STATES"
When
Account($aState : accountState)
Receipt($rState : receiptState != $aState)
Then
System.out.println("AccountState:[" + $aState + "]");
System.out.println("ReceiptState:[" + $rState + "]");
End
The results are:
AccountState:[SP]
ReceiptState:[SP]
AccountState:[RJ]
ReceiptState:[RJ]
....and so on...
This means the receiptState != $aState is NOT working as expected, returning TRUE always,
regardless of the values of the fields (In the example they are NOT equal)
Additionally if I try with receiptState == $aState, the results are exactly the same for
receiptState != $aState.
Which makes me suspect of some problems in Node Sharing not taking the operator into
consideration.
--
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