package com.flowable.local.work.configuration;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.flowable.local.work.service.StartProcessBot;
import org.flowable.engine.HistoryService;
import org.flowable.engine.RuntimeService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
public class ServiceConfiguration {

    @Bean
    public StartProcessBot activateTaskBot(RuntimeService runtimeService,
                                           ObjectMapper objectMapper,
                                           HistoryService historyService) {
        return new StartProcessBot(runtimeService, objectMapper, historyService);
    }
}
