[rules-users] Issue while comparing BigDecimal and Long(only while using references)
sumatheja
sumatheja at gmail.com
Tue May 15 16:12:32 EDT 2012
Hi,
I cam to know that we can compare BigDecimal, Long, Integer
interchangeably in the LHS of rule like
*when
Message(Decimalstatus == Longstatus)*
I found that this rule will fire as long as both Decimalstatus and
Longstatus Values are same. But when I try to use this feature in the below
mentioned way
*when
Message($dec:Decimalstatus)
Message(longstatus == $dec)*
This rule doesn't fire even though I have two Message object which satisfy
the condition.However, when I try
*
when
Message($dec:Decimalstatus)
Message(longstatus == $dec.longValue())*
It fires properly. Is this an issue or am I missing anything? Any
suggestions for better approach are welcome.Thanks in advance.
--
cheers
Sumatheja Dasararaju
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20120515/a5719a7a/attachment.html
More information about the rules-users
mailing list