Hi All<br>To use a ForEach element i need to access a collection inside my FactObject.  (FactObject.list)<br>I tried to call FactObject.list inside a CollectionExpressions but this fail. (Just ok with list defined as a process variable)<br>
<b>So i do something thats a consider a workaround:</b><br><br>1- I Create a &#39;&quot;Action Node&quot; before a &quot;ForEach Node&quot;<br><br>2-In the &quot;Action Node&quot;, i get the FactObject and populate the process variable that represents FactObject.list :<br>
<div style="margin-left: 40px;"><b>FactObject factObject = (FactObject)drools.getKnowledgeRuntime().getObjects(new ClassObjectFilter(FactObject.class)).iterator().next();<br>context.setVariable(&quot;list&quot;, factObject.getDefeitos());</b><br>
<br></div>3- And on the &quot;Foreach node&quot; i just  passed the &quot;list&quot; in the CollectionExpressions<br><br>This is the correct way to do this? Has a better way to get FactObject.list to use on &quot;For Each Node&quot;?<br>
<br>On Eclipse, the CollectionExpression of forEach don&#39;t have a window (Like Action Editor) to put a MVEL/Java expressions. I think this is a interesting resource.<br><br> <br><br><br><br><div style="margin-left: 40px;">
<br></div><br><br>