Hi all,
today I have the problem to pass values (string) from one apg process to another.
I use the feature to start "sub-processes" from a report script in a parent process like this (thanks to Tanguy Petre) :
var processAutoComp = Context.getComponent("Process");
var runresult = processAutoComp.run("5bdc5db1-fb79-11e3-4efe-00505692002f", PV_array);
That works fine and I pass the selected models I want to deal with to the sub-process I run with that command (PV_array) .
But I need to pass some additional parameter values (string) to the subprocess and I tried the context.setproperty und context.getproperty methods as we use it within other processes with reports (within one process - that's the difference). But the context-property I set in the calling process do not "arrive" in the second process when I try the getproperty - it is empty (null). It looks to me as if there are different contexts. Right?
How to deal with that and how can I manage to pass the parameters?
Many thanks for any idea.
Wolfgang