public class RuleFreeGiftRAOAction extends AbstractRuleExecutableSupport implements RAOAction
| Constructor and Description |
|---|
RuleFreeGiftRAOAction() |
| Modifier and Type | Method and Description |
|---|---|
protected ProductModel |
findProduct(String productCode,
RuleActionContext context) |
protected ProductService |
getProductService() |
protected RuleOrderEntryPercentageDiscountRAOAction |
getRuleOrderEntryPercentageDiscountRAOAction() |
void |
performAction(RuleActionContext context,
Map<String,Object> parameters)
perform action on RAO objects
|
protected void |
performAction(RuleActionContext context,
String productCode,
Integer quantity) |
void |
setProductService(ProductService productService) |
void |
setRuleOrderEntryPercentageDiscountRAOAction(RuleOrderEntryPercentageDiscountRAOAction ruleOrderEntryPercentageDiscountRAOAction) |
addMetadataToRao, adjustStrategyQuantity, adjustUnitPrice, adjustUnitPrice, checkAndGetRuleContext, checkArgumentAndGet, consumeOrderEntries, consumeOrderEntries, consumeOrderEntry, consumeOrderEntry, createOrderEntryConsumedRAO, extractAmountForCurrency, extractFact, getActionSupplementStrategies, getBeanName, getConfigurationService, getEntriesSelectionStrategies, getMetaDataFromRule, getMetaDataFromRule, getOrderUtils, getRaoUtils, getRuleCode, getRuleConfigurationRRD, getRuleCurrencyConverterStrategy, getRuleEngineCalculationService, getRuleGroupExecutionRRD, getSelectedOrderEntryQuantities, getSelectedOrderEntryRaos, hasEnoughQuantity, hasEnoughQuantity, mergeDiscounts, postProcessAction, setActionSupplementStrategies, setBeanName, setConfigurationService, setEntriesSelectionStrategies, setOrderUtils, setRAOMetaData, setRaoUtils, setRuleCurrencyConverterStrategy, setRuleEngineCalculationService, splitEntriesSelectionStrategies, trackRuleExecution, trackRuleGroupExecution, trackRuleGroupExecutions, updateActionRAOWithConsumed, validateCurrencyIsoCode, validateRule, validateSelectionStrategypublic void performAction(RuleActionContext context, Map<String,Object> parameters)
RAOActionperformAction in interface RAOActioncontext - - instance of RuleActionContextparameters - - map of named objects, creating the execution context for an actionprotected void performAction(RuleActionContext context, String productCode, Integer quantity)
protected ProductModel findProduct(String productCode, RuleActionContext context)
protected ProductService getProductService()
public void setProductService(ProductService productService)
public void setRuleOrderEntryPercentageDiscountRAOAction(RuleOrderEntryPercentageDiscountRAOAction ruleOrderEntryPercentageDiscountRAOAction)
protected RuleOrderEntryPercentageDiscountRAOAction getRuleOrderEntryPercentageDiscountRAOAction()
Copyright © 2017 SAP SE. All Rights Reserved.