Re: [rules-users] LHS compare two lists

2010-09-19 Thread Greg Barton
Also, you can avoid duplicate AcquiredCertification errors and o(n^2) run time by making all Lists into Sets. GreG On Sep 19, 2010, at 15:57, Esteban Aliverti wrote: > You can avoid the eval setting the size restriction inside the list: > > List(size == $certifications.size) from collect... >

Re: [rules-users] LHS compare two lists

2010-09-19 Thread Esteban Aliverti
You can avoid the eval setting the size restriction inside the list: List(size == $certifications.size) from collect... Best, El sep 19, 2010 12:29 p.m., "Wolfgang Laun" escribió: The idea of the rule given below is to collect a List from a certain User that's contained in the Position object'

Re: [rules-users] LHS compare two lists

2010-09-19 Thread lnguyen
That worked perfectly. Thank you so much. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/LHS-compare-two-lists-tp1521979p1525468.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users

Re: [rules-users] LHS compare two lists

2010-09-19 Thread Wolfgang Laun
The idea of the rule given below is to collect a List from a certain User that's contained in the Position object's list of requiredCertifications, and then to compare the sizes. Equality means that User meets all requirements. rule "meets requirements" dialect "mvel" when Position( $certifica

[rules-users] LHS compare two lists

2010-09-18 Thread lnguyen
Hi, I'm trying to determine if a user has the required certifications for a position. So I'm comparing the list of required certifications to the list of User Certifications but I'm throwing a nullPointerException even though I check to make sure the list are not null on their respective objects.