What have you tried so far? And, please, clarify what you mean by "any 5" in "2 days". For instance: If A, B, C, D, E, F join on 5/24, is this a match? And if G, H, J join additionally on 5/25, is this another match?
-W On 17/06/2014, naresh.t <nareshthota...@gmail.com> wrote: > HI Team, > > We came in situation where we need to compare our objects of same class. > > For example, we have a class like SampleData.java. It has fields like 1) No > 2) Student Name 3) DOJ(date of join) > > Now, we want to write a Rule to get the Student Details like > > 1) if any 5 students joined in 2 days of span > > This rule might changed dynamically like for now it is 2 days but in future > it may be 1 day or 3 days etc., > > Please provide any suggestions on this... > > Thanks & Regards > Naresh > > > > > -- > View this message in context: > http://drools.46999.n3.nabble.com/Comparing-Objects-of-same-class-tp4030073.html > Sent from the Drools: User forum mailing list archive at Nabble.com. > _______________________________________________ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > _______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users