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:
-
Deploy Rule Engine.
-
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>
-
In the same directory, add the local_tenant_<tenant_name>.properties file, where <tenant_name> is the correct name of your tenant.
-
Run the application and access SAP Commerce Administration Console.
-
In SAP Commerce Administration Console, select . This displays the following window:
-
Select the tenant that you wish to activate and click Activate.
-
Once the tenant is running, click the corresponding View button to initialize it.
-
In the tenant's View window, select Initialize tenant as shown in the following image:
-
In SAP Commerce Administration Console, select and import the script:
INSERT_UPDATE DroolsKIEModule;name[unique=true];active;mvnGroupId;mvnArtifactId;mvnVersion; ;promotions-module;true;hybris-rules-<tenant_name>;promotions;1.0.0;
-
Click Import.
-
Access the running tenant. For example, open https://localhost:9002/backoffice_tenant_name/ in your browser.

