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;