Consider the following scenario :
I have one serviceTask with a input variable say "MyVariable"
// Inside component's execute() methode
execution.setVariable("MyVariable","Global variable value");
In next component used ${MyVariable} somewhere
At runtime Exception will be thrown regarding "${MyVariable}" because MyVariable is not found there.
Reason :
execution.setVariable("MyVariable","Global variable value"); this does't worked as expected.
I expected that above line will create a global variable in execution.
But the case might be that it overwritten the existing local variable. And the scope of the Variable remain Local. If there were no local variable with the same name; there would be no problem.
Thanks,
Pankaj Prabhakar Bhamare,
Software Developer,
Mobile : 9561199551
email : pankajpbhamare@gmail.com
This is the controller panel for Smart Panels app
- is related to
-
CAM-11706 Improve scope documentation for setting Variables
- Closed