Hola de nuevo, he realizado la prueva y he echo lo siguiente ,
HashMap<String,String> hm= new HashMap<String,String>();
resultset.beforeFirst();
while (resultset.next()) {
String key = resultset.getString(‘NOMBRE_PROCESO’);
String value = resultset.getString(‘userName’);
hm.put(key,value);
}
return hm
pero me sale el siguiente error:
java.lang.reflect.InvocationTargetException
org.bonitasoft.engine.bpm.connector.ConnectorExecutionException: USERNAME=install | org.bonitasoft.engine.core.operation.exception.SOperationExecutionException: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: Groovy script throws an exception of type class java.sql.SQLException with message = Column ‘NOMBRE_PROCESO’ not found.
Expression : SExpressionImpl [name=resultset, content=import java.sql.ResultSetMetaData;
HashMap<String,String> hm= new HashMap<String,String>();
resultset.beforeFirst();
while (resultset.next()) {
String key = resultset.getString(‘NOMBRE_PROCESO’);
String value = resultset.getString(‘userName’);
hm.put(key,value);
}
return hm;, returnType=java.util.HashMap, dependencies=[SExpressionImpl [name=resultset, content=resultset, returnType=java.sql.ResultSet, dependencies=[], expressionKind=ExpressionKind [interpreter=NONE, type=TYPE_INPUT]]], expressionKind=ExpressionKind [interpreter=GROOVY, type=TYPE_READ_ONLY_SCRIPT]]