知识卡片

结构图卡 · 2285.j.11

长运行保护领域边界

理解等级:高级

服务没有持久状态时,只能把暂时无法完成的问题抛给调用方。例如支付遇到过期信用卡,需要联系客户并等待一周;若把它上抛,履约服务被迫理解信用卡细节。长运行能力使支付保留此责任,对外最终报告支付成功或失败,从而避免“烫手山芋”导致内部概念泄漏。

结构图:

flowchart TD
支付请求 --> 信用卡失败
信用卡失败 --> 持久保存状态
持久保存状态 --> 通知客户更新
通知客户更新 --> 等待新资料
等待新资料 --> 重新收款
重新收款 --> 返回最终支付结果
这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 自治、边界与隔离 · 查看原书依据

      Without the possibility to store persistent state, the payment service could not send the user an email and wait for a week until they enter the right data. So the payment team might be tempted to simply hand over the problem to order fulfillment. This is what I call the hot potato antipattern—you simply try

    参考来源

    - 位置:《Practical Process Automation》第7章《自治、边界与隔离》(来源项目:book-sources;源文件:extracted/Practical Process Automation (Bernd Ruecker)/_epub-src/OEBPS/ch07.xhtml) - 结论依据:原文给出的机制、实例与边界支持本卡的解释。 - 原始内容:Without the possibility to store persistent state, the payment service could not send the user an email and wait for a week until they enter the right data. So the payment team might be tempted to simply hand over the problem to order fulfillment. This is what I call the hot potato antipattern—you simply try