Skip to Content
0
Sep 22, 2016 at 03:34 PM

How can I access ImpEx variables from ImpEx BeanShell code

748 Views

Suppose I have an ImpEx file which defines an ImpEx variable ("$variable=value"). How can I access such an ImpEx variable from BeanShell code in the same ImpEx file?

As a simple example, let's assume I have

 $cronjob=abc
 
 #% import de.hybris.platform.core.Registry
 #% import de.hybris.platform.servicelayer.cronjob.CronJobService
 #% CronJobService cronJobService = Registry.getApplicationContext().getBean("cronJobService")
 #% cronJobService.performCronJob(cronJobService.getCronJob("xxx"),true)

How can I access the value of "$cronjob" in the BeanShell code (instead of "xxx")?