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.<br><br>Your "processing rules" could then act on the converted amounts.<br>
<br><div class="gmail_quote">On Mon, Apr 14, 2008 at 2:33 AM, vmuthupal <<a href="mailto:muthupalaniappan@eth.net">muthupalaniappan@eth.net</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hi,<br>
<br>
Currently we have a rule defined like this<br>
When<br>
Currency value = 300<br>
Currency type = USD<br>
Condition 3 = something<br>
Condition 4 = something<br>
Then<br>
do this<br>
<br>
If the input values are not of the same currency then we need to do a<br>
currency conversion and then evaluate the above rule. For example if the<br>
input value says Currency value = 250 and currency type = Euro. then we need<br>
to convert the currency value from Euro to USD and then execute the rule. Is<br>
this possible by using functions on the LHS. If possible is there a better<br>
way to do this as we are currently looking at 10,000 rules to go through<br>
this routine.<br>
<br>
Thanks.<br>
<font color="#888888">--<br>
View this message in context: <a href="http://www.nabble.com/Modifying-fact-object-during-rules-execution-tp16659936p16659936.html" target="_blank">http://www.nabble.com/Modifying-fact-object-during-rules-execution-tp16659936p16659936.html</a><br>
Sent from the drools - user mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Steven Williams<br><br>Supervising Consultant<br><br>Object Consulting<br>Office: 8615 4500 Mob: 0439 898 668 Fax: 8615 4501<br><a href="mailto:steven.williams@objectconsulting.com.au">steven.williams@objectconsulting.com.au</a><br>
<a href="http://www.objectconsulting.com.au">www.objectconsulting.com.au</a><br><br>consulting | development | training | support<br>our experience makes the difference