Commit 16c9203a authored by Roberto Loayza's avatar Roberto Loayza

SchedulerTask

parent 2a50e491
......@@ -23,7 +23,7 @@ public class SchedulerTaskBean implements Serializable {
@Expose
private String stringParameters;
@Expose
private Long etlId;
private Integer etlId;
@Expose
private String calendarID;
@Expose
......
......@@ -44,9 +44,6 @@ public class SchedulerTask implements Serializable {
@Column(name = "SHTA_CROEX", nullable = false)
private String cronExpression;
@Column(name = "ETL_ID")
private Long etlId;
@Column(name = "SHTA_PARAM")
private String stringParameters;
......
......@@ -37,7 +37,7 @@ public class SchedulerTaskService extends XDFService<SchedulerTask, SchedulerTas
}
BeanUtils.copyProperties(bean, model);
model.setInternals("Y".equals(bean.getInternals()));
model.setEtlId(bean.getEtlId());
model.setProcessETL(bean.getEtlId());
if (bean.getCalendarID() == null) {
throw new NotFoundException("Calendar can not be null");
}
......@@ -56,7 +56,7 @@ public class SchedulerTaskService extends XDFService<SchedulerTask, SchedulerTas
BeanUtils.copyProperties(model, bean);
bean.setInternals(model.getInternals().booleanValue() ? "Y" : "N");
bean.setCalendarID(bean.getCalendarID().trim());
bean.setEtlId(bean.getEtlId());
bean.setEtlId(model.getProcessETL());
// CalendarBean found = this.CalendarService.getById(bean.getCalendarID());
Optional<Calendar> calendarOptional = this.calendarRepository.findById(bean.getCalendarID());
if (!calendarOptional.isPresent()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment