Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def promoService() {
- // j'ai du mal à déclarer une map avec le groovy :
- Map serviceCtx = (parameters.productPromoCond , parameters.shoppingCart, nowTimestamp)
- try {
- Map condResult = dispatcher.runSync(condValue, serviceCtx)
- } catch (GenericServiceException e) {
- Debug.logError(e, "Fatal error calling promo condition check service [" + condValue + "]", module)
- return false
- }
- if (ServiceUtil.isError(condResult)) {
- Debug.logError("Error calling calling promo condition check service [" + condValue + "]", module)
- return false
- }
- Boolean directResult = (Boolean) condResult.get("directResult")
- if (directResult != null) {
- return directResult.booleanValue()
- }
- compareBase = (Integer) condResult.get("compareBase")
- if (condResult.containsKey("operatorEnumId")) {
- operatorEnumId = (String) condResult.get("operatorEnumId")
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement