<div dir="ltr">Do you insert a List into working memory?</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 2 July 2014 11:22, Rajeswari <span dir="ltr"><<a href="mailto:rajeswari@raremile.com" target="_blank">rajeswari@raremile.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Created a Model in Guvnor 5.5.0 with 3 fields - 2 Text, 1 java.util.List<br>
The model is verified and validated - correctly.<br>
Source looks like below<br>
declare FormatConfig<br>
fieldName: String<br>
regEx: String<br>
regExPatterns: java.util.List<br>
end<br>
<br>
While trying to create a Business Rule using the above created Model. The<br>
rule gets fired and works fine.<br>
rule "MyFormat"<br>
dialect "mvel"<br>
when<br>
config : FormatConfig( fieldName == "AMOUNT" )<br>
then<br>
config.setRegEx( "123" );<br>
retract( config );<br>
end<br>
<br>
But, the moment I try to use the List, by only declaring a List in the<br>
"When" section, the rule stops working.<br>
rule "MyFormat"<br>
dialect "mvel"<br>
when<br>
config : FormatConfig( fieldName == "AMOUNT" )<br>
regExPatterns1: java.util.List ( )<br>
then<br>
config.setRegEx( "123" );<br>
retract( config );<br>
end<br>
<br>
My final intention is to modify the regExPatterns list in the "THEN" block<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Usage-of-java-util-List-in-Drools-Guvnor-5-5-0-tp4030217.html" target="_blank">http://drools.46999.n3.nabble.com/Usage-of-java-util-List-in-Drools-Guvnor-5-5-0-tp4030217.html</a><br>
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>
</blockquote></div><br></div>