cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Getting null value, along with orderEntryRAO values in orderEntryRAO set

Former Member
0 Kudos
302

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

follow below diagram. link text

Answers (0)