package cn.myapps.scheduler;

import cn.myapps.common.model.application.Application;
import cn.myapps.runtime.common.dao.WrapConnection;
import cn.myapps.runtime.dynaform.form.ejb.Form;
import cn.myapps.runtime.dynaform.form.ejb.FormTableProcess;
import cn.myapps.runtime.dynaform.form.ejb.FormTableProcessBean;
import cn.myapps.runtime.dynaform.form.service.FormRunTimeService;
import cn.myapps.runtime.dynaform.form.service.FormRunTimeServiceImpl;
import cn.myapps.util.RuntimeDaoManager;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Collection;

public class SchedulerJobFactory {
    private static final Logger logger = LoggerFactory.getLogger(SchedulerJobFactory.class);

    public  void start(Application application) throws Exception {
        if (application.getDataSourceDefine() == null) {
            return;
        }

        //启动任务调度器
        //InitRuntimeScheduler.start(application.getId());
        logger.info(application.getDataSourceDefine().getName() + "数据源,软件" + application.getName() + "开启任务调度!");
    }
}
