All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.schoolwow.workflow.service.option.WorkFlowOptionImpl Maven / Gradle / Ivy

There is a newer version: 1.0.6
Show newest version
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