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

Edson Tirelli (JIRA) jira-events at jboss.com
Mon Nov 20 06:36:41 EST 2006


     [ http://jira.jboss.com/jira/browse/JBRULES-565?page=all ]

Edson Tirelli reassigned JBRULES-565:
-------------------------------------

    Assignee: Edson Tirelli  (was: Mark Proctor)

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