Hi everyone,
I’ve some problem with Data connector (MySQL) and business variables instanciation.
I have a Business Variables data, List of Business Data Product.
Product.id a double.
Product.description a String.
In my data connector, I make a select request like “SELECT product.id, product.description FROM dbb”.
I don’t know how to instanciate the business variable with this resultset. Here my work (doesn’t works) :
import com.company.model.MyBusinessObject
final List resultTable = new ArrayList()
while(resultset.next()){
final MyBusinessObject row = new MyBusinessObject();
row.id = resultset.getObject(1);
row.description = resultset.getObject(2);
resultTable.add(row);
}
return resultTable
Any ideas?