public class DefaultDroolsRuleTargetCodeGenerator extends Object implements RuleTargetCodeGenerator
| Modifier and Type | Field and Description |
|---|---|
static int |
BUFFER_SIZE |
static Locale |
DEFAULT_LOCALE |
static String |
DROOLS_RULES_PACKAGE |
| Constructor and Description |
|---|
DefaultDroolsRuleTargetCodeGenerator() |
public static final int BUFFER_SIZE
public static final String DROOLS_RULES_PACKAGE
public static final Locale DEFAULT_LOCALE
public DefaultDroolsRuleTargetCodeGenerator()
public void generate(RuleCompilerContext context, RuleIr ruleIr) throws RuleCompilerException
RuleTargetCodeGeneratorgenerate in interface RuleTargetCodeGeneratorcontext - - the rule compiler contextruleIr - - the intermediate representationRuleCompilerException - in an error occurs during the generationprotected void setVersionIfAbsent(AbstractRuleEngineRuleModel ruleModel)
protected String generateRuleContent(DroolsRuleGeneratorContext context) throws RuleCompilerException
RuleCompilerExceptionprotected String generateRuleContentQuery(DroolsRuleGeneratorContext context, String conditions)
protected String generateRuleContentRule(DroolsRuleGeneratorContext context, String actions, String metadata)
protected Map<String,String> generateGlobals(DroolsRuleGeneratorContext context) throws RuleCompilerException
RuleCompilerExceptionprotected DroolsRuleGeneratorContext createGeneratorContext(RuleCompilerContext context, RuleIr ruleIr)
protected void updateEngineRule(AbstractRuleEngineRuleModel engineRule) throws RuleCompilerException
RuleCompilerExceptionprotected String getRuleGroupCode(AbstractRuleModel rule)
protected RuleParametersService getRuleParametersService()
public void setRuleParametersService(RuleParametersService ruleParametersService)
protected ModelService getModelService()
public void setModelService(ModelService modelService)
protected RuleEngineService getPlatformRuleEngineService()
public void setPlatformRuleEngineService(RuleEngineService ruleEngineService)
protected DroolsRuleConditionsGenerator getDroolsRuleConditionsGenerator()
public void setDroolsRuleConditionsGenerator(DroolsRuleConditionsGenerator droolsRuleConditionsGenerator)
protected DroolsRuleActionsGenerator getDroolsRuleActionsGenerator()
public void setDroolsRuleActionsGenerator(DroolsRuleActionsGenerator droolsRuleActionsGenerator)
protected CommonI18NService getCommonI18NService()
public void setCommonI18NService(CommonI18NService commonI18NService)
protected ConfigurationService getConfigurationService()
public void setConfigurationService(ConfigurationService configurationService)
protected RuleService getRuleService()
public void setRuleService(RuleService ruleService)
protected DroolsRuleMetadataGenerator getDroolsRuleMetadataGenerator()
public void setDroolsRuleMetadataGenerator(DroolsRuleMetadataGenerator droolsRuleMetadataGenerator)
Copyright © 2017 SAP SE. All Rights Reserved.