Acitivit-springboot opens event logger

  activiti, java, springboot

event logger

Event logger is an experimental function of activiti. Its purpose is to solve the problem that historical tables are inconvenient to query and analyze in relational databases. This feature can be used to graft activiti’s data to a big data platform for analysis.

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

    }