Hello,<br><br>Using Guvnors "guided" features you cannot create constructs like this: <span style="font-family:courier new,monospace">HashMap(this["amount"]!=null)</span><br><br>The only solution is to use a free-format DRL fragment (in either the Guided Rule Editor, Guided Template Editor or Guided Decision Table).<br>
<br>With Guided Templates and Guided Decision Tables you could make the map key a "template key" so values can be defined elsewhere: <span style="font-family:courier new,monospace">HashMap(this["@{key}"]!=null)</span><br>
<br>An alternative to a free-format DRL fragment would be to define a DSL. DSLs can be used in any of the foregoing editors.<br><br>With kind regards,<br><br>Mike<br><br><div class="gmail_quote">On 22 March 2013 09:16, Aditi Hardas <span dir="ltr"><<a href="mailto:aditi.hardas@gmail.com" target="_blank">aditi.hardas@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Abhinay,<br>
<br>
I was also expected the same and still struggling for the right answer . see<br>
my older post<br>
<br>
<a href="http://drools.46999.n3.nabble.com/guvnor-5-5-Guided-decision-tables-web-based-td4022179.html#a4022238" target="_blank">http://drools.46999.n3.nabble.com/guvnor-5-5-Guided-decision-tables-web-based-td4022179.html#a4022238</a><br>
<<a href="http://drools.46999.n3.nabble.com/guvnor-5-5-Guided-decision-tables-web-based-td4022179.html#a4022238" target="_blank">http://drools.46999.n3.nabble.com/guvnor-5-5-Guided-decision-tables-web-based-td4022179.html#a4022238</a>><br>
<br>
<br>
I would like to ask you that according to your first post you have created a<br>
Hash Map.<br>
<div class="im"><br>
Map<String, Integer> map = new HashMap<String,Integer>();<br>
map.put("amount",12);<br>
<br>
My DRL is as follows :<br>
<br>
when<br>
$h : HashMap(this["amount"]!=null)<br>
then<br>
//something<br>
<br>
</div> So did you created that in Guvnor or in hand coded drl file ? How Guvnor<br>
will identified HashMap(this["amount"]!=null) statement without creating a<br>
object of HashMap ?<br>
<br>
<br>
<br>
<br>
<br>
-----<br>
Aditi<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Can-an-Object-inside-a-map-be-used-in-guvnor-tp4022907p4022982.html" target="_blank">http://drools.46999.n3.nabble.com/Can-an-Object-inside-a-map-be-used-in-guvnor-tp4022907p4022982.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br>