According to java documentation the result of Map.put is:
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.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users