package com.ho.flow.config;

import org.activiti.engine.RepositoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;

/**
 * @author fancl
 * @desc:
 * @date 2023/1/2
 */
@Configuration
public class ProcessEnginConfig {

    @Autowired
    RepositoryService repositoryService;


    //启动检查流程是否部署,没部署就部署,主要是要根据集团部署多个流程


    /*@Autowired
    FlowIdGenerator flowIdGenerator;

    @Bean
    ProcessEngineConfigurationImpl processEngineConfigurationImpNew(ProcessEngineConfigurationImpl processEngineConfiguration){
        processEngineConfiguration.setIdGenerator(flowIdGenerator);
        processEngineConfiguration.getDbSqlSessionFactory().setIdGenerator(flowIdGenerator);
        return processEngineConfiguration;
    }*/
}
