鞍钢重复审批人修改

This commit is contained in:
guoshengxiong 2025-04-14 16:27:36 +08:00
parent 318d0a8268
commit 17f331dfd7

View File

@ -13,7 +13,6 @@ import java.util.Random;
/**
* 添加流程引擎默认配置
* @author : willian fu
* @date : 2023/12/19
*/
@Component
public class WflowEngineConfigurationConfigurer implements EngineConfigurationConfigurer<SpringProcessEngineConfiguration> {
@ -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)));
}
}