I am trying to use a file pickup event bean which starts the process as soon as it detects a file in a given directory. I already have such a bean, but it uses a fix bean editor input (which cannot be changed on the server) for defining the path in which to look for files. I would like now to replace this fix input with a global variable. But unforunately in the bean scope I have no access to the variable and ivy.var.get("name") returns null or empty. Has anyone an idea how to solve this? asked 05.06.2014 at 09:33 Marcel von Wyl |
Hi Marcel did you try a static access as well like:
answered 05.06.2014 at 09:36 Daniel Oechslin yes I did try it, without any success.
(05.06.2014 at 09:37)
Marcel von Wyl
What exactly does return null? The result of the request or is it a NPE? I guess you created an environment and you added your global to this env. And you set the environment in the server administrator as active.
(05.06.2014 at 09:46)
Daniel Oechslin
the .get("name") method return no value (i did not test if it is null or empty). Anyway it works now somehow, but i do not know why. Ivy ivy = Ivy.getInstance(); String var = ivy.var.get("HRM_IMPORT_ORDNER");
(05.06.2014 at 10:06)
Marcel von Wyl
|
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 05.06.2014 at 09:33
Seen: 2,790 times
Last updated: 05.06.2014 at 10:06