Hi All,
I am facing issues with iterating multiple lists and matching the
statements.
1. dealTechList - This is a list which contains DealTypeTotal class and
which has following params.
protected String summaryType ;
protected double listPrice;
protected double discount;
protected double valueDiscount;
protected double netPrice;
2. routingRuleList - This is another list which has all the routing rules
data which contains RoutingRule Object.
I want to collect all the routing rules satisfying these conditions.
a. summaryType should match with Routing Rules nonStdTerms.
b. listPrice of techList should fall between routing rules' listPriceFrom
and listPriceTo.
b. discount of techList should fall between routing rules' discountFrom and
discountTo.
$selectedASTRulesWithOutHier : ArrayList()
from collect ($routingRule : RoutingRule(currency == $curr
&& flexAttribute4 !="SDM"
&& (
listPriceFrom <= ???? && listPriceTo > ???
&& discountPriceFrom <= ??? && discountPriceTo
> ??
&& nonStdTerm == ??? )
)
from $routingRuleList)
There could be multiple DealTypeTotal objects present in dealTechList.
Can some one please suggest any solution to this problem.
Thanks,
Gaurav
--
View this message in context:
http://n3.nabble.com/Issue-with-comparing-values-from-multiple-lists-tp44...
Sent from the Drools - User mailing list archive at
Nabble.com.