<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:"Calibri","sans-serif";color:#1F497D">Thanks W,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> laune [via Drools] [mailto:ml-node+<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> </o:p></p>
<p class="MsoNormal">Is there an <br>
import java.util.Map <br>
import java.util.HashMap <br>
in the DRL? <br>
-W <br>
<br>
On 03/03/2014, Gopu Shrestha <<a href="/user/SendEmail.jtp?type=node&node=4028466&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>> wrote:
<o:p></o:p></p>
<div>
<p class="MsoNormal"><br>
> Sorry, Here is the complete code: <br>
> <br>
> rule "map accumulate" <br>
> <br>
> when <br>
> $headers : Map() from accumulate(RulesHeader($headerName : name in <br>
> ("some_ErrorInfo"), $headerValue : valueAsString not in (null, "")), <br>
> init(Map headers = new HashMap();) <br>
> action(headers.put($headerName, $headerValue);) <br>
> result(headers)) <br>
> then <br>
> log.info("Executing rule map accumulate ...."); <br>
> <br>
> end <br>
> <br>
> Error:------------------------------- <br>
> <br>
> Unable to resolve ObjectType 'Map' <br>
> Error while executing rules ::: Errors encountered in rules package : <br>
> Unable to resolve ObjectType 'Map' : [Rule name='map accumulate'] <br>
> <br>
> Error while executing rules <br>
> java.lang.RuntimeException: Errors encountered in rules package : <br>
> Unable to resolve ObjectType 'Map' : [Rule name='map accumulate'] <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> -----Original Message----- <br>
> From: <a href="/user/SendEmail.jtp?type=node&node=4028466&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a>
<br>
> [mailto:<a href="/user/SendEmail.jtp?type=node&node=4028466&i=2" target="_top" rel="nofollow" link="external">[hidden email]</a>] On Behalf Of Wolfgang Laun
<br>
> Sent: Monday, March 03, 2014 3:25 PM <br>
> To: Rules Users List <br>
> Subject: Re: [rules-users] accumulate Map() <br>
> <br>
> Guessing game time, huh? <br>
> <br>
> <br>
> On 03/03/2014, Gopu Shrestha <<a href="/user/SendEmail.jtp?type=node&node=4028466&i=3" target="_top" rel="nofollow" link="external">[hidden email]</a>> wrote:
<br>
>> This accumulate is not working.. any advice? <br>
>> <br>
>> $headers : Map() from accumulate(RulesHeader($headerName : name in ( <br>
>> "some_ErrorInfo"), $headerValue : valueAsString not in <br>
>> (null, "")), <br>
>> init(Map headers = new HashMap();) <br>
>> action(headers.put($headerName, $headerValue);) <br>
>> result(headers)) <br>
>> <br>
>> <br>
> _______________________________________________ <br>
> rules-users mailing list <br>
> <a href="/user/SendEmail.jtp?type=node&node=4028466&i=4" 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>
> _______________________________________________ <br>
> rules-users mailing list <br>
> <a href="/user/SendEmail.jtp?type=node&node=4028466&i=5" 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>
> <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&node=4028466&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:"Tahoma","sans-serif";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:"Tahoma","sans-serif";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:"Tahoma","sans-serif";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&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&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:"Times New Roman","serif"">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/>