acitivit-springboot开启event logger

493 查看

event logger

event logger是activiti的实验性功能,目的是解决历史表在关系型数据库中不方便查询分析的问题。可以利用此特性将activiti的数据嫁接到大数据平台进行分析。

@Bean
    public CommandLineRunner init() {
        return new CommandLineRunner() {
            public void run(String... strings) throws Exception {
                //开启event logging
                runtimeService.addEventListener(new EventLogger(processEngineConfiguration.getClock(),objectMapper));
            }
        };

    }