知识卡片
等待不占工作线程
长期等待是实例状态持久化后的逻辑状态,而非让一个线程睡眠数天。引擎保存位置后释放线程;用户完成任务、外部事件或计时器到期时,再载入状态继续执行。因此在途实例数量不等于同时占用的线程数量。
结构图:
flowchart TD
A[执行至等待点] --> B[持久化实例位置]
B --> C[释放工作线程]
C --> D[外部事件或计时器]
D --> E[加载实例并继续]
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 工作流引擎与流程方案 · 查看原书依据
One common source of confusion is threading. When I use the terms waiting or long-running in the context of a workflow engine, I don’t mean that the workflow engine thread is blocked, waiting for something to happen. Instead, the workflow engine stores the current state in the persistent database.
参考来源
- 位置:《Practical Process Automation》第2章《工作流引擎与流程方案》(来源项目:book-sources;源文件:extracted/Practical Process Automation (Bernd Ruecker)/_epub-src/OEBPS/ch02.xhtml)
- 结论依据:原文中的定义、机制和适用条件支持上述解释,正文未将产品示例推广为所有引擎的保证。
- 原始内容:One common source of confusion is threading. When I use the terms waiting or long-running in the context of a workflow engine, I don’t mean that the workflow engine thread is blocked, waiting for something to happen. Instead, the workflow engine stores the current state in the persistent database.