use sousVenues.empty == true<br><br><div class="gmail_quote">On Wed, Apr 23, 2008 at 5:32 PM, vdelbart <<a href="mailto:delbart.v@mipih.fr">delbart.v@mipih.fr</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hi,<br>
<br>
I have an object 'VenueGlobal' with a property 'sousVenues' who is a List of<br>
SousVenue. I try to test the emptyness of this list in on sentence but i<br>
don't know why it doesn't work :<br>
<br>
I try this :<br>
<br>
VenueGlobal( sousVenues == null || sousVenues.empty )<br>
<br>
but I have this error :<br>
<br>
org.drools.rule.InvalidRulePackage: [11,53]: unknown:11:53 Unexpected token<br>
')'<br>
at org.drools.rule.Package.checkValidity(Package.java:424)<br>
<br>
I try this :<br>
<br>
VenueGlobal( sousVenues == null || sousVenues.size == 0 )<br>
<br>
but I have this error :<br>
<br>
Caused by: org.mvel.PropertyAccessException: unable to resolve property:<br>
size<br>
at<br>
org.mvel.optimizers.impl.refl.ReflectiveAccessorOptimizer.getBeanProperty(ReflectiveAccessorOptimizer.java:382)<br>
<br>
<br>
I don't know what the solution ?<br>
<br>
<br>
regards,<br>
<br>
V.<br>
<font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://www.nabble.com/Collection---Emptyness-tp16833060p16833060.html" target="_blank">http://www.nabble.com/Collection---Emptyness-tp16833060p16833060.html</a><br>
Sent from the drools - user mailing list archive at Nabble.com.<br>
<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>
</font></blockquote></div><br><br clear="all"><br>-- <br>Steven Williams<br><br>Supervising Consultant<br><br>Object Consulting<br>Office: 8615 4500 Mob: 0439 898 668 Fax: 8615 4501<br><a href="mailto:steven.williams@objectconsulting.com.au">steven.williams@objectconsulting.com.au</a><br>
<a href="http://www.objectconsulting.com.au">www.objectconsulting.com.au</a><br><br>consulting | development | training | support<br>our experience makes the difference