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