Here at BonitaSoft Documentation, we get questions from Bonita Open Source users which just need simple answers.
Recently, one such question was about variables.
Variables are containers that hold data, a bit like bag full of tools, where the bag is the variable and the tools are the data.
So when I want to add a variable, how do I really tell the difference between a global and a local variable? In fact, the only difference is where the variable is actually created.
(The definitions below have been taken from the BonitaSoft Documentation website).
Global variables
“Global variables are accessible to all elements in the process (pool). Thus, they can be used anywhere in the process”.
Local variables
“Local data is available only to the task where it is defined, and to its output transitions. Thus, they can be used only in a single task, and in conditions on the task’s output transitions”.
Take a look at the video How to define or load a variable at the BonitaSoft Documentation website.
For other useful videos tutorials about Bonita Open Solution, take a look at the BonitaSoft documentation video library.