<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->


<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Thanks W,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> laune [via Drools] [mailto:ml-node&#43;<a href="/user/SendEmail.jtp?type=node&node=4028467&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>]
<br>
<b>Sent:</b> Monday, March 03, 2014 3:34 PM<br>
<b>To:</b> Gopu Shrestha<br>
<b>Subject:</b> Re: [rules-users] accumulate Map()<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Is there an <br>
&nbsp; &nbsp;import java.util.Map <br>
&nbsp; &nbsp;import java.util.HashMap <br>
in the DRL? <br>
-W <br>
<br>
On 03/03/2014, Gopu Shrestha &lt;<a href="/user/SendEmail.jtp?type=node&amp;node=4028466&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt; wrote:
<o:p></o:p></p>
<div>
<p class="MsoNormal"><br>
&gt; Sorry, Here is the complete code: <br>
&gt; <br>
&gt; rule &quot;map accumulate&quot; <br>
&gt; <br>
&gt; when <br>
&gt; $headers : Map() from accumulate(RulesHeader($headerName : name in <br>
&gt; (&quot;some_ErrorInfo&quot;), $headerValue : valueAsString not in (null, &quot;&quot;)), <br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;init(Map headers = new HashMap();) <br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;action(headers.put($headerName, $headerValue);) <br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;result(headers)) <br>
&gt; then <br>
&gt; log.info(&quot;Executing rule map accumulate ....&quot;); <br>
&gt; <br>
&gt; end <br>
&gt; <br>
&gt; Error:------------------------------- <br>
&gt; <br>
&gt; Unable to resolve ObjectType 'Map' <br>
&gt; Error while executing rules ::: Errors encountered in rules package : <br>
&gt; Unable to resolve ObjectType 'Map' : [Rule name='map accumulate'] <br>
&gt; <br>
&gt; Error while executing rules <br>
&gt; java.lang.RuntimeException: Errors encountered in rules package : <br>
&gt; Unable to resolve ObjectType 'Map' : [Rule name='map accumulate'] <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; -----Original Message----- <br>
&gt; From: <a href="/user/SendEmail.jtp?type=node&amp;node=4028466&amp;i=1" target="_top" rel="nofollow" link="external">[hidden email]</a>
<br>
&gt; [mailto:<a href="/user/SendEmail.jtp?type=node&amp;node=4028466&amp;i=2" target="_top" rel="nofollow" link="external">[hidden email]</a>] On Behalf Of Wolfgang Laun
<br>
&gt; Sent: Monday, March 03, 2014 3:25 PM <br>
&gt; To: Rules Users List <br>
&gt; Subject: Re: [rules-users] accumulate Map() <br>
&gt; <br>
&gt; Guessing game time, huh? <br>
&gt; <br>
&gt; <br>
&gt; On 03/03/2014, Gopu Shrestha &lt;<a href="/user/SendEmail.jtp?type=node&amp;node=4028466&amp;i=3" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt; wrote:
<br>
&gt;&gt; This accumulate is not working.. any advice? <br>
&gt;&gt; <br>
&gt;&gt; $headers : Map() from accumulate(RulesHeader($headerName : name in ( <br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;some_ErrorInfo&quot;), $headerValue : valueAsString not in <br>
&gt;&gt; (null, &quot;&quot;)), <br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; init(Map headers = new HashMap();) <br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; action(headers.put($headerName, $headerValue);) <br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; result(headers)) <br>
&gt;&gt; <br>
&gt;&gt; <br>
&gt; _______________________________________________ <br>
&gt; rules-users mailing list <br>
&gt; <a href="/user/SendEmail.jtp?type=node&amp;node=4028466&amp;i=4" target="_top" rel="nofollow" link="external">[hidden email]</a>
<br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_top" rel="nofollow" link="external">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt; <br>
&gt; _______________________________________________ <br>
&gt; rules-users mailing list <br>
&gt; <a href="/user/SendEmail.jtp?type=node&amp;node=4028466&amp;i=5" target="_top" rel="nofollow" link="external">[hidden email]</a>
<br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_top" rel="nofollow" link="external">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt; <o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">_______________________________________________
<br>
rules-users mailing list <br>
<a href="/user/SendEmail.jtp?type=node&amp;node=4028466&amp;i=6" target="_top" rel="nofollow" link="external">[hidden email]</a>
<br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_top" rel="nofollow" link="external">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br>
<o:p></o:p></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="1" width="100%" noshade="" style="color:#CCCCCC" align="center">
</div>
<div>
<div>
<p class="MsoNormal"><b><span style="font-size:9.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#444444">If you reply to this email, your message will be added to the discussion below:<o:p></o:p></span></b></p>
</div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#444444"><a href="http://drools.46999.n3.nabble.com/rules-users-accumulate-Map-tp4028463p4028466.html" target="_top" rel="nofollow" link="external">http://drools.46999.n3.nabble.com/rules-users-accumulate-Map-tp4028463p4028466.html</a>
<o:p></o:p></span></p>
</div>
<div style="margin-top:4.8pt">
<p class="MsoNormal" style="line-height:18.0pt"><span style="font-size:8.5pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#666666">To start a new topic under Drools: User forum, email
<a href="/user/SendEmail.jtp?type=node&node=4028467&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a>
<br>
To unsubscribe from Drools, <a href="" target="_top" rel="nofollow" link="external">
click here</a>.<br>
<a href="http://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&amp;id=instant_html%21nabble%3Aemail.naml&amp;base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&amp;breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" target="_top" rel="nofollow" link="external"><span style="font-size:7.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">NAML</span></a>
<o:p></o:p></span></p>
</div>
</div>




        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://drools.46999.n3.nabble.com/rules-users-accumulate-Map-tp4028463p4028467.html">RE: [rules-users] accumulate Map()</a><br/>
Sent from the <a href="http://drools.46999.n3.nabble.com/Drools-User-forum-f47000.html">Drools: User forum mailing list archive</a> at Nabble.com.<br/>