Running Rule Engine on Multi-Tenant Systems

Rule Engine offers support for running sets of Rule Engine data across a single database.

To learn more about Multi-tetant Systems and how these work in SAP Commerce, refer to the Multitenancy topic.

Activating the Tenant

Perform these steps to run tenants:

  1. Deploy Rule Engine.

  2. In the hybris/config directory, edit the local.properties file and add the name of the tenant as shown in the following example:

    installed.tenants=<tenant_name>
  3. In the same directory, add the local_tenant_<tenant_name>.properties file, where <tenant_name> is the correct name of your tenant.

  4. Run the application and access SAP Commerce Administration Console.

  5. In SAP Commerce Administration Console, select Start of the navigation pathPlatform Next navigation step TenantsEnd of the navigation path. This displays the following window:

  6. Select the tenant that you wish to activate and click Activate.

  7. Once the tenant is running, click the corresponding View button to initialize it.

  8. In the tenant's View window, select Initialize tenant as shown in the following image:

  9. In SAP Commerce Administration Console, select Start of the navigation pathConsole Next navigation step Impex Next navigation step ImportEnd of the navigation pathand import the script:

    INSERT_UPDATE DroolsKIEModule;name[unique=true];active;mvnGroupId;mvnArtifactId;mvnVersion;
    ;promotions-module;true;hybris-rules-<tenant_name>;promotions;1.0.0;
  10. Click Import.

  11. Access the running tenant. For example, open https://localhost:9002/backoffice_tenant_name/ in your browser.