Class ProductConfigAbstractRAOAction
java.lang.Object
de.hybris.platform.ruleengineservices.rule.evaluation.actions.AbstractRuleExecutableSupport
de.hybris.platform.sap.productconfig.rules.rule.evaluation.impl.ProductConfigAbstractRAOAction
- All Implemented Interfaces:
RAOAction,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
- Direct Known Subclasses:
DisplayCsticReadonlyRAOAction,DisplayMessageRAOAction,HideCsticRAOAction,RemoveAssignableValueRAOAction,SetCsticValueRAOAction
public abstract class ProductConfigAbstractRAOAction
extends AbstractRuleExecutableSupport
implements RAOAction
Abstract base class for product configuration related RAOAction classes. Provides some common base functionality.
such as:
ProcessStepvalidation, to ensure that the rule is only applied at correct process step- logging
- rule framework related helper methods
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final StringCharacteristic parameter name used in the related action definition.protected static final StringCharacteristic Value parameter name used in the related action definition.protected static final StringMessage text used in the DisplayMessage action definition. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CsticRAOcreateCsticRAO(Map<String, Object> parameters) protected CsticValueRAOcreateCsticValueRAO(Map<String, Object> parameters) protected voidlogRuleData(RuleActionContext context, Map<String, Object> parameters, String... parameterNames) voidperformAction(RuleActionContext context) perform action on RAO objectsprotected abstract StringprepareActionLogText(RuleActionContext context, Map<String, Object> parameters) protected voidupdateContext(RuleActionContext context, AbstractRuleActionRAO actionRAO) protected booleanvalidateProcessStep(RuleActionContext context, Map<String, Object> parameters, ProcessStep... expectedProcessSteps) Methods inherited from class de.hybris.platform.ruleengineservices.rule.evaluation.actions.AbstractRuleExecutableSupport
addMetadataToRao, checkAndGetRuleContext, extractAmountForCurrency, getActionSupplementStrategies, getBeanName, getConfigurationService, getConsumptionSupport, getCurrencyUtils, getMetaDataFromRule, getMetaDataFromRule, getPriceAdjustmentStrategy, getRaoLookupService, getRaoUtils, getRuleCode, getRuleEngineCalculationService, getRuleGroupCode, getRuntimeTracker, isRuleGroupExclusive, mergeDiscounts, performActionInternal, postProcessAction, setActionSupplementStrategies, setBeanName, setConfigurationService, setConsumptionSupport, setCurrencyUtils, setPriceAdjustmentStrategy, setRaoLookupService, setRAOMetaData, setRaoUtils, setRuleEngineCalculationService, shouldPerformAction, splitEntriesSelectionStrategies, trackActionExecution, validateCurrencyIsoCode, validateParameters, validateRule, validateSelectionStrategy
-
Field Details
-
CSTIC_NAME
Characteristic parameter name used in the related action definition.- See Also:
-
CSTIC_VALUE
Characteristic Value parameter name used in the related action definition.- See Also:
-
MESSAGE
Message text used in the DisplayMessage action definition.- See Also:
-
-
Constructor Details
-
ProductConfigAbstractRAOAction
public ProductConfigAbstractRAOAction()
-
-
Method Details
-
validateProcessStep
protected boolean validateProcessStep(RuleActionContext context, Map<String, Object> parameters, ProcessStep... expectedProcessSteps) -
prepareActionLogText
protected abstract String prepareActionLogText(RuleActionContext context, Map<String, Object> parameters) -
updateContext
-
logRuleData
protected void logRuleData(RuleActionContext context, Map<String, Object> parameters, String... parameterNames) -
createCsticRAO
-
createCsticValueRAO
-
performAction
Description copied from interface:RAOActionperform action on RAO objects- Specified by:
performActionin interfaceRAOAction- Overrides:
performActionin classAbstractRuleExecutableSupport- Parameters:
context- - instance of RuleActionContext
-