package cn.axzo.workflow.server.common.config.property;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.List;

/**
 * 本服务的一些配置,可通过 @RefreshScope 刷新
 * <p>
 * 可全局搜索 {@code workflow.} 查看有哪些, 这里仅简单的支持需要刷新的
 *
 * @author wangli
 * @since 2024/4/22 14:09
 */

@RefreshScope
@Configuration
@ConfigurationProperties("workflow")
@Data
public class WorkflowProperties {

    private List<String> filterOperations = new ArrayList<>();

    private List<String> filterExceptionCode = new ArrayList<>();

}
