和顺 / 衡律 返回所属 Agent
21.5

原请求身份与外部执行结果

原能力

统一原请求身份、业务幂等及结果查证,未知结果不得通过换键逃避。(合同附件 R7 21.5)

首选项目

Temporal Python SDK(MIT,限 SDK)。 Temporal Python SDK

匹配范围

持久原 Workflow ID 和 FIX 消息会话查找。

源码

Temporal Python SDK · def get_workflow_handle(

temporalio/client/_client.py · 868–881 行。 在 GitHub 查看源码 · 许可证与声明

源码片段
    def get_workflow_handle(
        self,
        workflow_id: str,
        *,
        run_id: str | None = None,
        first_execution_run_id: str | None = None,
        result_type: type | None = None,
    ) -> WorkflowHandle[Any, Any]:
        """Get a workflow handle to an existing workflow by its ID.

        Args:
            workflow_id: Workflow ID to get a handle to.
            run_id: Run ID that will be used for all calls.
            first_execution_run_id: First execution run ID used for cancellation

QuickFIX C++ · void Session::next(const std::string &msg

src/C++/Session.cpp · 1170–1183 行。 在 GitHub 查看源码 · 许可证与声明

源码片段
void Session::next(const std::string &msg, const UtcTimeStamp &now, bool queued) {
  try {
    m_state.onIncoming(msg);
    const DataDictionary &sessionDD = m_dataDictionaryProvider.getSessionDataDictionary(m_sessionID.getBeginString());
    if (m_sessionID.isFIXT()) {
      const DataDictionary &applicationDD
          = m_dataDictionaryProvider.getApplicationDataDictionary(m_senderDefaultApplVerID);
      next(Message(msg, sessionDD, applicationDD, m_validateLengthAndChecksum), now, queued);
    } else {
      next(Message(msg, sessionDD, m_validateLengthAndChecksum), now, queued);
    }
  } catch (InvalidMessage &e) {
    m_state.onEvent(e.what());
  • ** Copyright (c) 2001-2014

实现与验收要点

统一请求身份、发送事实证据、真实成交与不明状态。