Bonita 6.32, groovy connect to mysql in initial form

I have a problem with groovy in initial form with a widget list in start event form.
data value get it from groovy expression.

this is the code.

def host = “localhost”;
def port = “3307”;
def user = “root”;
def pass = “123456”;
def schema = “ei”;
def query = “SELECT nombre_cliente FROM clientes”;
def list=;
def sql = BonitaSql.newInstance(“jdbc:mysql://${host}:${port}/${schema}”,user, pass, new com.mysql.jdbc.Driver());
sql.eachRow(query,{row-> list.add(row.nombre_cliente)});
return list;

This is solution.

http://community.bonitasoft.com/groups/usage-operation-5x/forms-available-values-are-not-shown

In an initial form if groovy script is used to obtain data from mysql , you must place a mysql connector in the process , otherwise it does not work.

What’s the problem? You don’t say…