[jboss-jira] [JBoss JIRA] Created: (JBRULES-565) String contraints not working

Marcos Tengelmann (JIRA) jira-events at jboss.com
Sun Nov 19 14:40:41 EST 2006


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: Mark Proctor


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

        



More information about the jboss-jira mailing list