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

Need help on the below error when migrating from 6.3 to 1808 hybris. Please check the details below

Former Member
0 Likes
372

While building the code

The method checkArgumentAndGet(String, Class, Map) is undefined for the type is being shown

it is related to ruleengineservices.jar ?

How to resolve this error not bale to understand

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Hi ,

You need to replace checkArgumentAndGet method with context.getParameter.

Example:

 String deliveryModeCode = (String) context.getParameter("delivery_mode", String.class);

Regards,

Answers (1)

Answers (1)

Former Member
0 Likes

Hello Kamil, YThanks for your reply

Please review my changes below as i did :

public void performAction(final RuleActionContext context, final Map parameters) { checkArgument(isNotEmpty(parameters), "Properties passed as a method argument must not be empty"); validateRule(context); AbstractRuleExecutableSupport obj;

     // Retrieve parameters
     Map<String, Integer> qualifyingContainers = (Map) parameters.get(QUALIFYING_CONTAINERS);
     Map<String, Integer> benefitProducts = (Map) parameters.get(BENEFIT_PRODUCTS);
     //Integer totalQuantity = (Integer) checkArgumentAndGet(TOTAL_QUANTITY, Integer.class, parameters);
     Integer deliveryModeCode = (Integer) context.getParameter(TOTAL_QUANTITY, Integer.class);


My question is what will happen to the parameters involved as the third argument of the method

Need some light on it.

Regards Rajib