When I assign value, through a script, to a variable Data type:java object, class: java.util.list; and then, in another task, used the variable in an Editable grid of one column (the variable contains 1 column also), I mean, that is not multiple, Why does not display the saved data?
When the variable in a editable grid that is multiple is not problem at all and show it OK.
The script where the variable takes its value is:
import groovy.sql.Sql;
def result = [];
Sql sql = BonitaSql.newInstance(“jdbc:firebirdsql://dbserver:3050/BPM”, “consultas”, “consultas”, new org.firebirdsql.jdbc.FBDriver());
sql.eachRow(“select atributo_pv from atributos_pv where id_segmento = " + idSegmento + " order by atributo_pv”, { row →
result.add(row.atributo_pv);
});
sql.close();
return result;
And the script return type of result is: java.util.list