[rules-users] Creating HashMap object in rules

Ejaz Mohammed mohdejaz74 at gmail.com
Mon Nov 5 11:57:55 EST 2012


I believe you should use the "from" clause or insert it as fact in session

Ejaz

On Mon, Nov 5, 2012 at 10:51 AM, Esteban Aliverti <
esteban.aliverti at gmail.com> wrote:

> Where in your rule are you storing $rule? According to the code you've
> posted $rule is only used (misused?) internally in the rule.
>
> Best Regards,
>
>
> XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
>
> Esteban Aliverti
> - Blog @ http://ilesteban.wordpress.com
>
>
> On Mon, Nov 5, 2012 at 5:41 PM, himansu.nayak <himansumca at gmail.com>wrote:
>
>> Hi Esteban,
>> Values of @{Result1}, @{Result2} & @{Result3} are unique values in my
>> excel
>> and they are not null, but when i try to get the hashmap(i.e. $rule) from
>> array list(i.e $testObj.getResult() return an array list) in my java code
>> it
>> just return null as if the Map <String, Map>$rule = new HashMap<String,
>> Map>() is completely ignored when it comes out of drools working memory.
>>
>>
>>
>>
>> -----
>> Thanks...
>> Himansu
>> --
>> View this message in context:
>> http://drools.46999.n3.nabble.com/Creating-HashMap-object-in-rules-tp4020690p4020704.html
>> Sent from the Drools: User forum mailing list archive at Nabble.com.
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20121105/742b57f5/attachment-0001.html 


More information about the rules-users mailing list