map.put("result",res);
map.put("result2",res2);
modify( map );
[]s
Edson
Also, I've tried to map these values in the
rule "AmountsAreNotNull" salience 20
when
...
then...
<res, res2 initialization>
map.put("result",res);
...
map.put("result2",res2);and check it in the next rule:
rule "CompareValues" salience 10
when
map : Map( keySet contains "result" )
...
"keyset" couldn't found "result" and "result2" mapping
but! when I've checked "keyset" in RHS part of this rule "keyset" HAS proper values of "result" and "result2":
...
then
Iterator k = map.keySet().iterator();
while (k.hasNext())
{
String key = k.next().toString();
LOGGER.info("Key: " + key + "; Value: " + map.get(key).toString());
}...
end
How I can check values of "result" and "result2" in LHS part of rule "CompareValues"?
Thanks,
____________________
Regards,
Komissarov Alexander
mail: aleks.komissarov@gmail.com
icq: 239128267
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users