Quellcode durchsuchen

流程id生成优化

dudm vor 3 Jahren
Ursprung
Commit
872ccf5efe

+ 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();