package cn.axzo.workflow.server.conf;

import cn.axzo.workflow.core.deletage.MockTaskAssigneeSelector;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Workflow Engine Application Global Configuration
 *
 * @author wangli
 * @since 2023/11/17 14:27
 */
@Configuration(proxyBeanMethods = false)
public class WorkflowEngineConfiguration {

    @Bean
    @ConditionalOnProperty(prefix = "workflow", name = "mock", havingValue = "true")
    public MockTaskAssigneeSelector mockTaskAssigneeSelector() {
        return new MockTaskAssigneeSelector();
    }
}
