cn.schoolwow.workflow.service.option.WorkFlowOptionImpl Maven / Gradle / Ivy
package cn.schoolwow.workflow.service.option;
import cn.schoolwow.quickdao.dao.DAO;
import cn.schoolwow.quickflow.QuickFlow;
import cn.schoolwow.workflow.domain.QuickWorkFlowConfig;
public class WorkFlowOptionImpl implements WorkFlowOption{
private QuickWorkFlowConfig quickWorkFlowConfig;
public WorkFlowOptionImpl(QuickWorkFlowConfig quickWorkFlowConfig) {
this.quickWorkFlowConfig = quickWorkFlowConfig;
}
@Override
public void startStatementRecord() {
DAO dao = (DAO) quickWorkFlowConfig.workflow.getContextData("dao");
dao.startRecord();
}
@Override
public String stopStatementRecord() {
DAO dao = (DAO) quickWorkFlowConfig.workflow.getContextData("dao");
return dao.stopRecord();
}
@Override
public QuickFlow getWorkFlow() {
return quickWorkFlowConfig.workflow;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy