package com.webmanage.config; import lombok.Data; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; /** * 工作流配置属性 */ @Data @Component @ConfigurationProperties(prefix = "workflow") public class WorkflowProperties { /** * 审批服务配置 */ private Approval approval = new Approval(); /** * 工作流服务配置 */ private Process process = new Process(); /** * RestTemplate超时配置 */ private RestTemplate restTemplate = new RestTemplate(); @Data public static class Approval { /** * 审批服务基础URL */ private String baseUrl; /** * 模板关系查询URL */ private String templateRelationUrl; /** * 单位ID */ private String unitId; } @Data public static class Process { /** * 工作流服务基础URL */ private String baseUrl; /** * 启动流程URL */ private String startProcessUrl; /** * 查询代办URL */ private String findTodoUrl; /** * 查询已办URL */ private String findDoneUrl; /** * 提交流程URL */ private String completeUrl; /** * 驳回流程URL */ private String rejectUrl; } @Data public static class RestTemplate { /** * 连接超时时间(毫秒) */ private int connectTimeout = 5000; /** * 读取超时时间(毫秒) */ private int readTimeout = 10000; } }