核心功能
- 將批次組整合為單個統一訊息
- 針對 XML 內容基於 XPath 合併,並支援可配置的輸出訊息頭
- 靈活的訊息頭處理方式(累積、保持相同或無)
概覽
Batch Merge 端口接受到達傳送資料夾(端口設定面板的交易索引標籤)的批次組,並將批次組中的批次訊息合併為單個訊息。輸出訊息透過交易索引標籤向下傳遞,並可以根據需要由其他端口處理。Batch Merge 端口只能接受批次組作為輸入。如果端口接收到單個訊息作為輸入,它會擲回錯誤訊息。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
將批次組合併為單個統一訊息,支援基於 XPath 的 XML 內容合併和靈活的訊息頭處理選項。
| 設定 | 描述 |
|---|---|
| 端口 Id | 端口的靜態唯一識別碼。 |
| 端口型別 | 顯示端口名稱及其功能說明。 |
| 端口描述 | 可選欄位,用於自由描述端口及其在流程中的作用。 |
| XPath | 合併批次訊息時要使用的重複 XML 元素。有關更多詳細資訊,請參閱 XPath 使用範例。 |
| 輸出訊息頭 | 定義如何將訊息頭從輸入批次訊息傳輸到輸出訊息。選項包括: None:不保留或合併訊息頭 Accumulate:累積所有批次訊息的訊息頭,允許出現重複或變化 KeepSame:僅保留所有批次訊息中相同的訊息頭 |
| 本地檔案方案 | 為端口輸出的訊息分配檔名的方案。可以在檔名中動態使用宏,以包含識別碼和時間戳等資訊。有關更多資訊,請參閱宏。 |
| 設定 | 描述 |
|---|---|
| 處理延遲 | 對放置在交易索引標籤中的檔案延遲處理的時間(以秒為單位)。這是舊版設定。最佳實踐是使用 File 端口管理本地檔案系統,而不是使用此設定。 |
| 設定 | 描述 |
|---|---|
| 傳送 | 勾選後,端口會在批次組到達傳送資料夾(交易索引標籤)時自動合併批次組。如果取消勾選,則必須手動指示端口合併批次組。 |
<Orders>
<Shipping>
<Item>Paper</Item>
<Quantity>100</Quantity>
<Recurring>Yes</Recurring>
</Shipping>
<Shipping>
<Item>Eraser Bulk</Item>
<Quantity>20</Quantity>
<Recurring>No</Recurring>
</Shipping>
</Orders>
<Orders>
<Shipping>
<Item>Pencil, Box 100</Item>
<Quantity>10</Quantity>
<Recurring>Yes</Recurring>
</Shipping>
</Orders>
<Orders>
<Shipping>
<Item>Paper</Item>
<Quantity>100</Quantity>
<Recurring>Yes</Recurring>
</Shipping>
<Shipping>
<Item>Eraser Bulk</Item>
<Quantity>20</Quantity>
<Recurring>No</Recurring>
</Shipping>
<Shipping>
<Item>Pencil, Box 100</Item>
<Quantity>10</Quantity>
<Recurring>Yes</Recurring>
</Shipping>
</Orders>