[rules-users] Creating HashMap object in rules

himansu.nayak himansumca at gmail.com
Mon Nov 5 08:28:37 EST 2012


Hi,
i m trying to do something like this.

RHS OF MY RULE
================
Map <String, String>$result = new HashMap<String, String>();
Map <String, Map>$rule = new HashMap<String, Map>(); 
$result.put("Result1", "@{Result1}");
$result.put("Result2", "@{Result2}");
$result.put("Result3", "@{Result3}");		
$testObj.getResult().add($rule.put(drools.getRule().getName(), $result));
update($testObj.getResult());

i am not able to get this 2 object i.e "result and rule" from my java code
after the execution of the rule. even though i have the reference of testobj
in my java code. 

did i miss anything?



-----
Thanks...
Himansu
--
View this message in context: http://drools.46999.n3.nabble.com/Creating-HashMap-object-in-rules-tp4020690p4020700.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list