[rules-users] Creating HashMap object in rules

Wolfgang Laun wolfgang.laun at gmail.com
Mon Nov 5 05:47:26 EST 2012


To create any object on the right hand side of a rule, use the
correct Java syntax:

HashMap $rule = new ...

-W

On 05/11/2012, himansu.nayak <himansumca at gmail.com> wrote:
> Hi,
> i am trying to create an hash map object inside one of my rules
>
> $rule : new HashMap<String, String>();
> $rule.add("Result1", "@{Result1}");
>
> but it don't work.
>
>
>
>
> -----
> Thanks...
> Himansu
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Creating-HashMap-object-in-rules-tp4020690.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
>


More information about the rules-users mailing list