View Code? Open in Web Editor
NEW
💡 A pluggable, scalable process engine. You can use it to develop business-process, approval-process, retry-process and so on. Hope you enjoy it! 💖 可插拔的精简流程引擎,可快速实现流程、审批、业务失败重试等场景。
License: Apache License 2.0
bulbasaur's Issues
只需引jar,前缀可设置,并创建带特定前缀的数据库即可,不需重复打包,更改mapper中表名。
目前我这里实现为:
persistModule 增加 配置
所有以DO和DOExample结尾的类继承抽象类,抽象类包含属性 tableNamePrefix
在所有设置上述两种类的地方增加设置setTableNamePrefix(PersistModule.getInstance().getTableNamePrefix())
在所有mapper里 将原表名替换为 ${tableNamePrefix}bulbasaur_X
建议更改如下代码:
原:
com/tmall/pokemon/bulbasaur/persist/PersistParser.java:69
definitionDO = definitionDOList != null && !definitionDOList.isEmpty() ? definitionDOList.get(0) : null;
更改为:
definitionDO = definitionDOList != null && !definitionDOList.isEmpty() ? definitionDOList.get(definitionDOList.size() - 1) : null;
com.taobao
parent
1.0.3
com/tmall/pokemon/bulbasaur/persist/PersistMachine.java:113
StateLike copyCurrentState = currentState;//currentState 为final,做替身 if (currentState.getOutGoing() != null) { //先complete 之前停掉的 completeState(currentState); // 直接替换 copyCurrentState = run0_findCurrent(currentState.getOutGoing()); //先初始化当前 initNextState(copyCurrentState); }
outgoing中的BizException被算在了task上,这部分异常是不是应该拆开,outgoing节点被唤起,就可以标志task节点执行成功,outgoing节点内产生的BizException要算在outgoing身上
项目中使用了国产数据库,请问是否适配国产数据库使用?
项目中连接数据库是使用的 spring-data-jpa 或者直接使用 hibernate,请问是否支持这些 orm 框架?
缺失字段如下:
refund_bulbasaur_d.definition_alias
refund_bulbasaur_p.alias
refund_bulbasaur_s.alias
refund_bulbasaur_s.exe_info
refund_bulbasaur_t.deal_result
建议更改代码:
com/tmall/pokemon/bulbasaur/schedule/job/FailedRetryJob.java:33
原:
ScheduleMachine scheduleMachine = scheduleMachineFactory.newInstance(jobDO.getBizId());
更改为:
ScheduleMachine scheduleMachine = scheduleMachineFactory.newInstance(jobDO.getBizId(), jobDO.getDefinitionName());