Hi
I want to set value for variable in groovy script connector(6.2.6) but no data save on variable.
for example i use these command in groovy script connector(x, y is global variable):
x=10;
y=100;
in the next form x , y is null(in bonita 5.10 it works correctly).
how can i set value for variable that i can use them in another form?
in order to set process instances variables you can use Operations (tab “Operations” when you select an activiy in the Studio). If you want to use Grovy Scripty connector you need to use the engine API: Ex:
We have installed Bonita 6.3.6 (Community Edition) and like to update a process variable out of a groovy script,
we use the following method, but the variables not updated.
If it is in the POOL for the instantiation form then this will not work as I’ve found from personal experience, the problem being is that POOL variables are only created after the POOL form is displayed…
Bonitasoft empowers development teams with Bonita, the open-source and extensible platform to solve the most demanding process automation use cases. The Bonita platform accelerates delivery of complex applications with clear separation between capabilities for visual programming and for coding. Bonita integrates with existing solutions, orchestrates heterogeneous systems, and provides deep visibility into processes across the organization.