From baac505052a5d9e63536eb7de32ba346d7e98ca7 Mon Sep 17 00:00:00 2001 From: p-honggang.li <p-honggang.li@pcitc.com> Date: 星期六, 06 九月 2025 10:44:03 +0800 Subject: [PATCH] 修改审核订单查询获取正确taskid的问题 --- src/main/java/com/webmanage/config/WorkflowProperties.java | 93 ++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 93 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/webmanage/config/WorkflowProperties.java b/src/main/java/com/webmanage/config/WorkflowProperties.java new file mode 100644 index 0000000..19ac786 --- /dev/null +++ b/src/main/java/com/webmanage/config/WorkflowProperties.java @@ -0,0 +1,93 @@ +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; + + /** + * 鏌ヨ浠e姙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; + } +} -- Gitblit v1.8.0