package com.leanwo.activiti.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.leanwo.activiti.service.base.ProcessReportEngine;
import com.leanwo.activiti.service.base.impl.ProcessReportEngineImpl;

@Configuration
public class ProcessReportEngineConfiguration {

	private static Logger logger = LoggerFactory.getLogger(ProcessReportEngineConfiguration.class);

	@Value("${auto.processReport}")
	private Boolean processReport;

	@Bean(initMethod = "init", name = "processReportEngineImpl0")
	public ProcessReportEngine processReportEngine() {
		ProcessReportEngineImpl processReportEngineImpl = new ProcessReportEngineImpl(0L, processReport);
		return processReportEngineImpl;
	}

}
