return null;
}
public BusinessProcessID addGraph( BusinessProcess businessProcess ) {
BusinessProcessID retVal = null;
Connection connection = null;
try {
String sql = "insert into bpm_businessprocess" +
" ( businessprocessid, name, xml ) values ( ?, ?, ? )";
int businessProcessID = generateKey();
connection = getConnection();
PreparedStatement statement = connection.prepareStatement( sql );
statement.setInt( 1, businessProcessID );
statement.setString( 2, businessProcess.getName() );
statement.setString( 3, businessProcess.getGraphAsXML() );
statement.execute();
statement.close();
retVal = new BusinessProcessID( businessProcessID );
}
catch( SQLException e ) {
throw new RuntimeException( e );
}
finally {