05 2024 档案
摘要:lambada实现 @Configuration public class CommonDelegate { @Bean("test") JavaDelegate testDelegate() { return execution -> { System.out.println("test>>>>>
阅读全文
摘要:代码实现:需要接口 @Autowired private RuntimeService runtimeService; @Autowired private RepositoryService repositoryService; @Autowired private TaskService tas
阅读全文
摘要:代码实现: @Component("testTaskListener") public class UserTaskListener implements TaskListener { @Override public void notify(DelegateTask delegateTask) {
阅读全文
摘要:ERROR BOUNDARY EVENT:在任务发生异常时候会触发走,在代码中必须显式抛出 throw new BpmnError("error....."); public void execute(DelegateExecution delegateExecution) throws Excep
阅读全文
摘要:某个类没有set/get属性即可 class User{ private String name; } User user=new User(); JsonUtil.toJsonString(user); 此时会发生异常
阅读全文
摘要:Repository MyRepository extends JpaRepository<MyEntity, Integer>精确查询: Example 包装Entity Pageable pageable = PageRequest.of(current - 1, pageSize); //my
阅读全文
摘要:图例: 1:默认排他网关,表达式 Type:expression:${number%200==0} 2: service task (系统自动执行用的最多):常用Delegate expression ${testGateWay} 举例: @Component("testGateWay") publ
阅读全文

浙公网安备 33010602011771号