Comments (6)
是服务编排场景吗?
并行网关的允许扩展这几种属性: timeout="300" strategy="any" poolName="poolA" skipTimeoutExp="true" 使用方法详见源码里的 ServiceOrchestrationParallelGatewayTest
from smartengine.
是服务编排场景, 可能是我没描述清楚, 这里并行网关 在流程执行的时候, 使用的是遍历执行的模式(并行网关中的某一个节点异常则流程中断), 但是有的时候几个流程可以并行来降低总体rt, 然后我实现了ExecutorService, 使得并行网关使用线程池来并行执行; 但是我发现并行执行的话如果一个节点异常, 流程并不会中断;于是翻看了源码发现这里
ParalleGatewayBehiavior 这个里面执行的时候 executorService.invokeAll(tasks);
这里就只管执行了, 没有管他里面是否会出现异常
from smartengine.
嗯 你想要怎么处理里面的异常?
from smartengine.
我觉得简单的方式并行网关任意节点异常,整体流程失败, 返回流程异常中断流程;
通用性来说也可以让使用者定义异常处理策略 让使用者决定是否中断流程;
from smartengine.
嗯 这个我目前的建议是,业务使用方基于扩展点去修改吧,整体扩展成本还是蛮低的; 异常处理逻辑有点复杂,比较众口难调。
from smartengine.
好的 感谢
from smartengine.
Related Issues (20)
- 目前已经支持eventBasedGateway了么?还是有其他替代方案? HOT 1
- retry_record.xml存在代码错误问题 HOT 2
- 大佬,请教下,github开源仓库的内容 会 同步更新到 集团内部仓库和maven仓库吗? HOT 1
- 为什么要用分布式锁? HOT 6
- 考虑像activiti一样 支持生成流程追踪图吗? HOT 1
- 可以根据业务场景多写几个Demo应该会推广的更快 HOT 5
- 示例太少 HOT 2
- 请问流程节点间参数怎么传递的,能提供一个demo吗 HOT 1
- custom 模式和 database 模式可以同时存在吗?应该怎么配置? HOT 5
- 请问jumpTo和jumpFrom的使用场景是什么 HOT 4
- 大佬,Java基本代码规范能注意一下吗?太自由了:( HOT 1
- java.lang.NumberFormatException: For input string: "0dac1945-c1c6-4dec-b175-b5871d153da7" HOT 3
- mapper.xml加载不了 HOT 4
- 打算支持自定义表单吗 HOT 2
- smart-engine-core 3.0.0 并行网关异常处理
- 为什么我把数据源从H2替换为mysql后,运行示例,数据库里没有产生数据? HOT 1
- 请问下在高并发的查询场景(比如搜索)下性能怎么样?还有就是支持jdk17吗? HOT 1
- 考虑未来加入历史记录表吗? HOT 3
- "也需要将新类报名放在这个子包里面:com.alibaba.smart.framework.engine 里面,便于包扫描"请问这个是必须的,目前看好像扫描不到其他位置,有没有其他解决方案呢 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smartengine.