Hello to the hole Bonita community, I’m new in Bonita 7.2, any help will be appreciated.
The problem is that I have too many Data Base connectors, and I think should exist a different way of doing this in an optimal way, with only one connector executing multiples queries.
In one task I have to load many Select Widgets from different tables in data base, now what I am doing is creating one ON_Enter Data base connector for each Select Item. I store the values of the query, in a process Variable and I show it in a select item, accessing via API rest to the process variable, and I show it in the form (of course in json format).
This is perfect and show the values that I want.
My Question is if is there a way of making it in one unique groovy script?, can I read all the tables and store and load these values in the different processes variables to show it in the form?, I think this would be better than having 20 data base connectors in one task, that is what I am doing right now.
I think that it would be better to have one groovy script that makes all of this things, but I can’t connect to the data base from this script and return the different values in the different variables.
I think that the connector lets you execute many different queries, and access this values from the groovy script, but I don’t know the way of store this results in many processes variables to show it in different select item.
Bye!!
Thanks to all