cancel
Showing results for 
Search instead for 
Did you mean: 

Reload validation engine per tenant

Former Member
0 Kudos

When accessing http://localhost:9001/hmc_junit/hybris to look at my validation constraints (System -> Validation -> Constraints) I see that some of my junit constrains still need reloading.

However, when going to http://localhost:9001/admincockpit/index.zul, to Validation, I see that all constraints are reloaded. If I reload the engine anyway, there's no effect on what I see in hmc - same constraints still need reloading.

My question is - is http://localhost:9001/admincockpit/index.zul tenant-specific? Can I access that page for each tenant, are there separate url's? Is there any other way to reload the validation engine and make sure it applies too all tenants?

The question is related to https://wiki.hybris.com/display/R5T/Trail+~+Validation. Following the instructions of The three new constraints created in this trail are only available to the master tenant. To import them to the junit tenant, first switch to junit tenant in the administration console. Then create this impex script and run system update with 'Update running system' and 'Create essential data' selected in the administration console. didn't work.

Any help will be appreciated.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

you could open HAC and run this for each tenant: # # This Beanshell will reload the validation engine as the validation constraints have been modified. # "#% import org.apache.log4j.Logger;" "#%impex.enableExternalSyntaxParsing(true); " "#% private static Logger LOG = Logger.getLogger(ImpExManagerTest.class);" "#% validationService = de.hybris.platform.core.Registry.getApplicationContext().getBean(""validationService""); validationService.reloadValidationEngine();
"

Answers (0)