Disabling Rule Engine in a Specific Node

Rule Engine is one of the solutions under Promotions, that is provided by default when you install SAP Commerce Cloud. Disable the Rule Engine in specific nodes to customize the solution according to your needs.

Procedure

  1. Include the following in your configuration properties for the node where you wish to disable the Rule Engine.
    ruleengine.engine.active=false
  2. Restart the server.
    • If you disable the Rule Engine in the node running in your storefront, the promotion will not be applied.

    • If you disable the Rule Engine in the node running in your Backoffice, promotion cronjobs will give the log message below.

      INFO  [00000A15::de.hybris.platform.ruleengineservices.jalo.RuleEngineJob] (00000A15) [AbstractRuleEngineJob] *************************************
      INFO  [00000A15::de.hybris.platform.ruleengineservices.jalo.RuleEngineJob] (00000A15) [AbstractRuleEngineJob] Starting RuleEngineCompilePublishJob
      INFO  [00000A15::de.hybris.platform.ruleengineservices.jalo.RuleEngineJob] (00000A15) [AbstractRuleEngineJob] *************************************
      ERROR [00000A15::de.hybris.platform.ruleengineservices.jalo.RuleEngineJob] (00000A15) [AbstractRuleEngineJob] cannot activate rules module as the rule engine is not active. To activate it set the property ruleengine.engine.active to true.
      INFO  [00000A15::de.hybris.platform.ruleengineservices.jalo.RuleEngineJob] (00000A15) [AbstractRuleEngineJob] *************************************
      INFO  [00000A15::de.hybris.platform.ruleengineservices.jalo.RuleEngineJob] (00000A15) [AbstractRuleEngineJob] RuleEngineCompilePublishJob finished with errors
      INFO  [00000A15::de.hybris.platform.ruleengineservices.jalo.RuleEngineJob] (00000A15) [AbstractRuleEngineJob] *************************************
    • If you disable the Rule Engine running in any other node, you will not get the log message that shows successful initializing of Rule Engine modules.

      INFO  [localhost-startStop-4] [OnTenantStartupProcessor] [localhost-startStop-4]: Initializing rule engine modules after tenant [master] startup. Modules to be initialized: promotions-module, promotions-preview-module
      INFO  [localhost-startStop-4] [BlockingTenantStartupNotifier] de.hybris.platform.ruleengine.event.OnTenantStartupProcessor$DefaultRuleEngineTenantListener@676fc28c has finished successfully in 14.72 s.