TraceLinks Reviewer WinDU 任務
本節說明在 Windchill Diagnostic Utility (WinDU) 中執行 TraceLinks Reviewer 診斷任務的先決條件步驟。此任務會掃描 Windchill 中的所有追蹤連結,並產生列出其有效性狀況的 CSV 報告。
先決條件
在執行 TraceLinks Reviewer 診斷任務之前,請完成下列步驟:
1. ThingWorx Flow 中新增 OSLC 連接器:
針對非 SSO 環境,新增基本 OSLC 連接器。
針對已啟用 SSO 的環境,新增以 OAuth 為基礎的 (指定的使用者) OSLC 連接器。
如需有關所支援 OSLC 類型的詳細資訊,請參閱 ThingWorx Flow 說明中心的支援的 OSLC 連接器類型
* 
請確保連接器使用具有跨系統存取 OSLC 資料之必要權限使用者 (例如,OSLC 伺服器系統管理員) 的認證配置。
為每個外部 OSLC 伺服器建立單獨的 OSLC 連接器。
2. 在參考組態物件 (例如 PTCCodebeamerConfigThing) 之「內容」標籤的 OSLC-CONNECTION_NAME 內容中,輸入用於配置 OSLC 連接器的「連接器標籤」
3. ThingWorx Platform 中建立應用程式金鑰。
如需詳細資訊,請參閱 ThingWorx Platform 說明中心的應用程式金鑰
4. 執行 captureIntegrationConnection.[sh|bat] 公用程式。
Windchill shell 執行下列指令:
captureIntegrationConnection.[sh|bat] -n <Connection Name> -b <Base URL> -a <Authentication Delegate Class Name> -h "<Request Headers>" -s "<Base64 Encoded Secrets>"
在公用程式中指定下列參數:
參數
描述
<Connection Name>
DPT 整合連線的名稱。
針對 ThingWorx,指定 twx
<Base URL>
ThingWorx 連線的基礎 URL。
<Authentication Delegate Class Name>
驗證委派類別的名稱。
針對 ThingWorx,指定 com.ptc.windchill.integrations.auth.TWXAuthDelegate
<Request Headers>
請求標題。
針對 ThingWorx,指定 x-thingworx-session=false|Content-Type=application/json|Accept=application/json
<Base64 Encoded Secrets>
ThingWorx 的秘密應用程式金鑰。
* 
應用程式金鑰必須以 base64 編碼,並指定為「appkey=base64 編碼的應用程式金鑰值」。
範例:
captureIntegrationConnection.[sh|bat] -n twx -b https://thingworx-dev.acme.com -a com.ptc.windchill.integrations.auth.TWXAuthDelegate -h "x-thingworx-session=false|Content-Type=application/json|Accept=application/json" -s "appkey=YWJjZDEyMzQtZW1NiaDcLWlqay1sbW5Fyc3R1OTA="
* 
您可以使用 com.ptc.linkreviewer.batchsize 內容修改批次大小。預設值為 200。
TraceLinks Reviewer 診斷任務可以使用 Windchill 診斷任務排程器進行排程。
執行 TraceLinks Reviewer 任務
完成所有先決條件後,請在 Windchill Diagnostic Utility 中執行 TraceLinks Reviewer 診斷任務。如需詳細資訊,請參閱 Windchill Diagnostic Utility Guide (Windchill Diagnostic Utility 指南)。
這是否有幫助?