<div dir="ltr"><div>I found that the statement generated from &quot;from collection&quot; is not correct when it is used in combination with &quot;Any of the following are true&quot; feature. There is &quot;&gt;&quot; being generated in frond of the statement which is causing the compilation error.<br>
<br></div><div>Here is the code being generated from the guided editor:<br><br><table><tbody><tr><td>  java.util.Collection( size &gt;= 1 ) from collect ( ProcedureEvent( elements contains 4658 ))<br>(         &gt;java.util.Collection( size == 1 ) from collect ( ProcedureEvent( elements contains 7788 , eval( contiguousDays.createNewWithPaddedTime(1, DateTimeUnit.DAY).intersectsButNotAdjacent($diagnosticEvent.contiguousDays) )))<br>
or         &gt;java.util.Collection( size &gt;= 2 ) from collect ( DrugEvent( elements contains 4146 ))<br>)</td></tr><tr><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td>
</tr></tbody></table>The code above was from the item 8 and 9 in the attached screen. As shown, the collection statement is correct when there is no &quot;any of the following are true&quot; involved. <br><br></div><div>This seems to be a bug in Guvnor.<br>
<br>Please let me know if this needs to be reported.<br><br></div><div>Sean<br></div></div>