parametersForSQLActivity[i].setTransformer(paramContext.getTransformer());
}
generatedSQL = "insert into " + insertingTableName + "(" + intoClause + ")values(" + valuesClause + ")";*/
SQLGeneratorForDBMappingActivity generatedSQL = new SQLGeneratorForDBMappingActivity(mappingContext);
// sqlActivity.setParentActivity(getProcessDefinition());
sqlActivity.setSqlStmt(generatedSQL.getGeneratedSql(getQueryMode()));
sqlActivity.setParameters(generatedSQL.getParametersForSQLActivity());
sqlActivity.setConnectionFactory(getConnectionFactory());
sqlActivity.setApplySingleValueOnly(isApplySingleValueOnly());
if(getQueryMode() == DatabaseMappingActivity.QUERYMODE_SELECT){
sqlActivity.setQuery(true);
sqlActivity.setSelectMappings(generatedSQL.getSelectMapping());
} else {
sqlActivity.setQuery(false);
}
sqlActivity.executeActivity(instance);