hybris - How to get config data from local.properties to impex? -


is possible value environment variables defined @ local.properties configuration file , access via impex file?

ex.

$somemacro=<some variable config> 

thank you!

you can add impex:

# import config properties impex macros update genericitem[processor=de.hybris.platform.commerceservices.impex.impl.configpropertyimportprocessor];pk[unique=true] 

all configurations local.properties, etc. loaded , can used via $config- prefix, example:

local.properties

your.config.property=322 

so impex like:

# import config properties impex macros update genericitem[processor=de.hybris.platform.commerceservices.impex.impl.configpropertyimportprocessor];pk[unique=true]  $variable=$config-your.config.property  insert_update sampleitem;code[unique=true];name ;sample1;$variable  # or can directly use config macro insert_update sampleitem;code[unique=true];name ;sample1;$config-your.config.property 

hope works you.

edit: please note if there no such property found, value stored on sample above shall exactly: $config-your.config.property.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -