Following some tips from the bonita documentation and some answers from the forum, I tried to configure a mysql query to show it in a multiselect list wigdet as below ( I used the bonita community 6.3.2 ):
Create a field list_name type java.util.list;
Insert a connector and adjust the database access information to a MYSQL database;
Insert the following data in “Query or Batch Script”:
script name: selectMysql
// selects all user emails
String myQuery = "SELECT email ";
myQuery= myQuery +"FROM users ";
myQuery= myQuery +“WHERE valid = 1 ORDER BY email;”;
return myQuery
Maybe there’s a 6.3.2 version’s bug , or the community version doesn’t accepts MySQL connections like that.
PS: I have two another connections (SQL Server and PostGre) working fine.
I didn’t understand why the connectors (SQLServer and PostGre) informs the column name direct in the field “Takes value of” and in the MySQL connector, the bonita suggests the “resultset” value.
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.