throws RepositoryException {
Connection conn = null;
Statement statement = null;
ResultSet rs = null;
WorkflowTaskConfiguration config = null;
try {
conn = dataSource.getConnection();
statement = conn.createStatement();
String getConfigurationSql = "SELECT * from workflow_task_configuration WHERE workflow_task_id = "
+ taskId;
LOG.log(Level.FINE, "getConfigurationByTaskId: Executing: "
+ getConfigurationSql);
rs = statement.executeQuery(getConfigurationSql);
config = new WorkflowTaskConfiguration();
while (rs.next()) {
config.getProperties().put(rs.getString("property_name"),
rs.getString("property_value"));
}
if (config.getProperties().keySet().size() == 0) {
config = null;
}
} catch (Exception e) {
e.printStackTrace();