diff --git a/scheduled-mysql-persistence/src/main/java/io/github/jas34/scheduledwf/dao/mysql/MySQLScheduledWfMetaDataDao.java b/scheduled-mysql-persistence/src/main/java/io/github/jas34/scheduledwf/dao/mysql/MySQLScheduledWfMetaDataDao.java index d1ffa2c..3f65222 100644 --- a/scheduled-mysql-persistence/src/main/java/io/github/jas34/scheduledwf/dao/mysql/MySQLScheduledWfMetaDataDao.java +++ b/scheduled-mysql-persistence/src/main/java/io/github/jas34/scheduledwf/dao/mysql/MySQLScheduledWfMetaDataDao.java @@ -32,11 +32,6 @@ protected MySQLScheduledWfMetaDataDao(ObjectMapper om, DataSource dataSource) { public void saveScheduleWorkflow(ScheduleWfDef def) { validate(def); withTransaction(tx -> { - if (scheduleWorkflowDefExists(tx, def)) { - throw new ApplicationException(ApplicationException.Code.CONFLICT, - "ScheduleWfDef with " + def.toString() + " already exists!"); - } - insertOrUpdatescheduleWorkflowDef(tx, def); });