فهرست منبع

流程id生成优化

dudm 3 سال پیش
والد
کامیت
872ccf5efe
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      flowable/src/main/java/com/huyi/flowable/controller/ApiController.java

+ 1 - 1
flowable/src/main/java/com/huyi/flowable/controller/ApiController.java

@@ -306,7 +306,7 @@ public class ApiController {
                 File file = new File(filePath);
                 System.out.println("源文件是否存在:" + file.exists());
                 //流程id
-                String flowKey = UUID.randomUUID().toString();
+                String flowKey = UUID.randomUUID().toString().replaceAll("-", "");
                 System.out.println("流程的key:" + flowKey);
                 ProcessDefinition processDefinition;
                 processDefinition = repositoryService.createProcessDefinitionQuery().processDefinitionKey(flowKey).singleResult();