|
|
@ -97,14 +97,13 @@ public class ProcedureTask extends AbstractTask { |
|
|
|
procedureParameters.getMethod(), |
|
|
|
procedureParameters.getMethod(), |
|
|
|
procedureParameters.getLocalParams()); |
|
|
|
procedureParameters.getLocalParams()); |
|
|
|
|
|
|
|
|
|
|
|
// determine whether there is a data source
|
|
|
|
DataSource dataSource = processDao.findDataSourceById(procedureParameters.getDatasource()); |
|
|
|
if (procedureParameters.getDatasource() == 0){ |
|
|
|
if (dataSource == null){ |
|
|
|
logger.error("datasource id not exists"); |
|
|
|
logger.error("datasource not exists"); |
|
|
|
exitStatusCode = -1; |
|
|
|
exitStatusCode = -1; |
|
|
|
return; |
|
|
|
throw new IllegalArgumentException("datasource not found"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
DataSource dataSource = processDao.findDataSourceById(procedureParameters.getDatasource()); |
|
|
|
|
|
|
|
logger.info("datasource name : {} , type : {} , desc : {} , user_id : {} , parameter : {}", |
|
|
|
logger.info("datasource name : {} , type : {} , desc : {} , user_id : {} , parameter : {}", |
|
|
|
dataSource.getName(), |
|
|
|
dataSource.getName(), |
|
|
|
dataSource.getType(), |
|
|
|
dataSource.getType(), |
|
|
@ -112,11 +111,6 @@ public class ProcedureTask extends AbstractTask { |
|
|
|
dataSource.getUserId(), |
|
|
|
dataSource.getUserId(), |
|
|
|
dataSource.getConnectionParams()); |
|
|
|
dataSource.getConnectionParams()); |
|
|
|
|
|
|
|
|
|
|
|
if (dataSource == null){ |
|
|
|
|
|
|
|
logger.error("datasource not exists"); |
|
|
|
|
|
|
|
exitStatusCode = -1; |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
Connection connection = null; |
|
|
|
Connection connection = null; |
|
|
|
CallableStatement stmt = null; |
|
|
|
CallableStatement stmt = null; |
|
|
|
try { |
|
|
|
try { |
|
|
|