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))); } }