What was the data you were using that didn't produce the expected result? -W
On 31 May 2013 13:36, mohan <[email protected]> wrote: > Hi folks, > > I want to filter object instance in WM when max value of an object field > (rental ) is less than X (reloadValue) . X will vary over time. > I tried to use below query but I couldn't get expected results. Could > anyone > please help me? > > Thanks. > > -------------------------------------------- > rule "Insuf-Balance-Reload Alert" > dialect "java" > when > > $re : ReloadEvent($rechargeNum : rechargedNumber,$reloadVal : > reloadValue ) from entry-point "RELOAD-EVENT" > > InsufBalFailFact(mobileNo == $rechargeNum,$reloadVal > rental, > $pkgId : > pkgId,$rental : rental) > not InsufBalFailFact(mobileNo == $rechargeNum, rental > $rental) > > then > System.out.println($rechargeNum+","+$pkgId +","+$rental); > end > > > > > > -- > View this message in context: > http://drools.46999.n3.nabble.com/filtering-object-having-max-value-tp4024055.html > Sent from the Drools: User forum mailing list archive at Nabble.com. > _______________________________________________ > rules-users mailing list > [email protected] > https://lists.jboss.org/mailman/listinfo/rules-users >
_______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
