鞍钢重复审批人修改
This commit is contained in:
parent
318d0a8268
commit
17f331dfd7
@ -13,7 +13,6 @@ import java.util.Random;
|
|||||||
/**
|
/**
|
||||||
* 添加流程引擎默认配置
|
* 添加流程引擎默认配置
|
||||||
* @author : willian fu
|
* @author : willian fu
|
||||||
* @date : 2023/12/19
|
|
||||||
*/
|
*/
|
||||||
@Component
|
@Component
|
||||||
public class WflowEngineConfigurationConfigurer implements EngineConfigurationConfigurer<SpringProcessEngineConfiguration> {
|
public class WflowEngineConfigurationConfigurer implements EngineConfigurationConfigurer<SpringProcessEngineConfiguration> {
|
||||||
@ -25,6 +24,6 @@ public class WflowEngineConfigurationConfigurer implements EngineConfigurationCo
|
|||||||
engineConfiguration.setActivityBehaviorFactory(new WflowActivityBehaviorFactory());
|
engineConfiguration.setActivityBehaviorFactory(new WflowActivityBehaviorFactory());
|
||||||
engineConfiguration.setBpmnDeployer(new CustomIdBpmnDeployer());
|
engineConfiguration.setBpmnDeployer(new CustomIdBpmnDeployer());
|
||||||
//重写flowable的id生成器,生成流程实例ID规则为:wf+ 日期时间数字 + 4位随机数
|
//重写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)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user