You could then have a rule that checks not (Currency type == USD) and a RHS with that inserts a new converted amount. If your conversion is rules-based then just have a rule per currency conversion.
Your "processing rules" could then act on the converted amounts.
Hi,
Currently we have a rule defined like this
When
Currency value = 300
Currency type = USD
Condition 3 = something
Condition 4 = something
Then
do this
If the input values are not of the same currency then we need to do a
currency conversion and then evaluate the above rule. For example if the
input value says Currency value = 250 and currency type = Euro. then we need
to convert the currency value from Euro to USD and then execute the rule. Is
this possible by using functions on the LHS. If possible is there a better
way to do this as we are currently looking at 10,000 rules to go through
this routine.
Thanks.
--
View this message in context: http://www.nabble.com/Modifying-fact-object-during-rules-execution-tp16659936p16659936.html
Sent from the drools - user mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users