Class RuleExecutableActionTranslator
java.lang.Object
de.hybris.platform.ruleengineservices.definitions.actions.RuleExecutableActionTranslator
- All Implemented Interfaces:
RuleActionTranslator,RuleActionValidator,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class RuleExecutableActionTranslator
extends Object
implements RuleActionTranslator, RuleActionValidator, org.springframework.context.ApplicationContextAware
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.context.ApplicationContextprotected RuleExecutableActiongetRuleExecutableAction(String actionId) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetRuleCompilerProblemFactory(RuleCompilerProblemFactory ruleCompilerProblemFactory) translate(RuleCompilerContext context, RuleActionData action, RuleActionDefinitionData actionDefinition) Translates a rule action to the intermediate representation.voidvalidate(RuleCompilerContext context, RuleActionData action, RuleActionDefinitionData actionDefinition) Validates a rule action.
-
Field Details
-
ACTION_ID_PARAM
- See Also:
-
-
Constructor Details
-
RuleExecutableActionTranslator
public RuleExecutableActionTranslator()
-
-
Method Details
-
validate
public void validate(RuleCompilerContext context, RuleActionData action, RuleActionDefinitionData actionDefinition) Description copied from interface:RuleActionValidatorValidates a rule action.- Specified by:
validatein interfaceRuleActionValidator- Parameters:
context- - the compiler contextaction- - the actionactionDefinition- - the action definition
-
translate
public RuleIrAction translate(RuleCompilerContext context, RuleActionData action, RuleActionDefinitionData actionDefinition) Description copied from interface:RuleActionTranslatorTranslates a rule action to the intermediate representation.- Specified by:
translatein interfaceRuleActionTranslator- Parameters:
context- - the compiler contextaction- - the actionactionDefinition- - the action definition- Returns:
- the intermediate representation for the action
-
getRuleExecutableAction
-
getRuleCompilerProblemFactory
-
setRuleCompilerProblemFactory
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext() -
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-