on 2017 Oct 09 12:55 PM
Hi Experts,
For Condition-->
X (Cart CONTAINS ANY products [p1, p2]) AND (Y (Cart CONTAINS ANY products [p3, p4]) OR Z (Cart CONTAINS ANY products [p5, p6]))
where X, Y and Z are containers and Group Condition is used for or relation b/w Y and Z.
on fetching orderEntryRaos using the following , I'm getting a null value in the set .
final Set orderEntries = context.getValues(OrderEntryRAO.class, new String[]
{ "Y" });
And,
context is an object of RuleActionContext.
final Set orderEntries = context.getValues(OrderEntryRAO.class, new String[]
{ "Z" });
Can someone please explain, why null values are coming in the set.
Thanks
Request clarification before answering.
First of all, for this you don't need Container, you can achieve the above using Group condition itself. And for null, check your Provider. OrderEntryRaoProvider why it is not setting values.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your quick response.
I am using containers because I need to choose the products in the action to perform some business logic. And, secondly, as per my understanding orderEntryRAOs are populated by "orderEntryRaoPopulator", which is called by CartRAOProvider. Also, on fetching OrderEntries from CartRAO object is not giving me any null value in the SET.
The issue is with containers defined under GROUP-OR condition.--> i.e.
context.getValues(OrderEntryRAO.class, new String[] { "Z" });
and
context.getValues(OrderEntryRAO.class, new String[] { "Y" });
Thanks
follow below diagram. link text
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.