cmd.executor().doExec(commands, con);
}
public List<String> checkDbConsistency(Connection con) throws Exception {
if (multiEngineMode)
throw new CopperRuntimeException("Cannot check DB consistency when multiEngineMode is turned on!");
final PreparedStatement dequeueStmt = con.prepareStatement("select id,priority,creation_ts,data,long_data,object_state,long_object_state,PPOOL_ID from COP_WORKFLOW_INSTANCE where state not in (?,?)");
try {
final List<String> idsOfBadWorkflows = new ArrayList<String>();
dequeueStmt.setInt(1, DBProcessingState.INVALID.ordinal());