From 17f331dfd70d3160183137dbb9ea9c57f3043f86 Mon Sep 17 00:00:00 2001 From: guoshengxiong <1923636941@qq.com> Date: Mon, 14 Apr 2025 16:27:36 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9E=8D=E9=92=A2=E9=87=8D=E5=A4=8D=E5=AE=A1?= =?UTF-8?q?=E6=89=B9=E4=BA=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workflow/config/WflowEngineConfigurationConfigurer.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/wflow/workflow/config/WflowEngineConfigurationConfigurer.java b/src/main/java/com/wflow/workflow/config/WflowEngineConfigurationConfigurer.java index b94b640..0fc7350 100644 --- a/src/main/java/com/wflow/workflow/config/WflowEngineConfigurationConfigurer.java +++ b/src/main/java/com/wflow/workflow/config/WflowEngineConfigurationConfigurer.java @@ -13,7 +13,6 @@ import java.util.Random; /** * 添加流程引擎默认配置 * @author : willian fu - * @date : 2023/12/19 */ @Component public class WflowEngineConfigurationConfigurer implements EngineConfigurationConfigurer { @@ -25,6 +24,6 @@ public class WflowEngineConfigurationConfigurer implements EngineConfigurationCo engineConfiguration.setActivityBehaviorFactory(new WflowActivityBehaviorFactory()); engineConfiguration.setBpmnDeployer(new CustomIdBpmnDeployer()); //重写flowable的id生成器,生成流程实例ID规则为:wf+ 日期时间数字 + 4位随机数 - engineConfiguration.setIdGenerator(() -> "wf" + LocalDateTime.now().format(formatter) + String.format("%04d", new Random().nextInt(10000))); +// engineConfiguration.setIdGenerator(() -> "wf" + LocalDateTime.now().format(formatter) + String.format("%04d", new Random().nextInt(10000))); } }