知识卡片
业务实体归应用保存
工作流引擎需要保存流程执行数据,但不应因此成为业务实体的主存储。应用保存客户、订单等实体,引擎尽量只存它们的标识引用。这样流程的运行生命周期不会模糊业务数据的所有权,也避免把引擎变量误当业务数据库。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 工作流引擎与流程方案 · 查看原书依据
Note that a workflow engine is not responsible for storing business entities. This data should be stored by your application, and the workflow engine typically just refers to it.
参考来源
- 位置:《Practical Process Automation》第2章《工作流引擎与流程方案》(来源项目:book-sources;源文件:extracted/Practical Process Automation (Bernd Ruecker)/_epub-src/OEBPS/ch02.xhtml)
- 结论依据:原文中的定义、机制和适用条件支持上述解释,正文未将产品示例推广为所有引擎的保证。
- 原始内容:Note that a workflow engine is not responsible for storing business entities. This data should be stored by your application, and the workflow engine typically just refers to it.