Windchill
使用 Windchill 連接器可存取及執行 Windchill 動作。如需有關 Windchill 的詳細資訊,請參閱 Windchill 說明中心
發行版本
8.4.1
支援的動作
入庫
出庫
支援的觸發器
支援的連接器類型
基本
OAuth
OAuth (指定的使用者)
OAuth (工作階段使用者)
Windchill 伺服器安裝先決條件
Windchill 動作基於 Windchill REST Services (WRS) 所建構。欲在 ThingWorx Flow 中執行任何 Windchill 動作,您必須安裝 WRS。
WRS 2.0 經過測試和認證,可與 Windchill 動作搭配使用。
ThingWorx Flow 配置為使用高於預設 WRS 的版本
如果您要讓 ThingWorx Flow 使用高於 WRS 2.0 的 WRS 版本,需要更新 ThingWorx Flow 伺服器上的 Windchill settings.json 檔案。為此,請依照下列步驟執行:
1. 執行下列指令,從 ThingWorx Flow 的實例下載 Windchill 組態設定:
flow-deploy settings download -f <Path_to_Customization_File> -t <ThingWorx_Base_URL> -u <ThingWorx_Administrator_Username> -p '<ThingWorx_Administrator_Password>' -c windchill -s default
此指令會將 settings.json 檔案下載至您使用指令中的 -f 引數指定的位置。
2. 根據您的需求更新檔案 settings.json 並予以儲存。
UseLatestDomainVersions 更新為 true,可針對 Windchill 連接器使用高於預設 WRS 的 WRS 版本。
UseLatestDomainVersions 更新為 false,可針對 Windchill 連接器使用預設 WRS 網域版本。
執行下列指令,將組態設定上載至 ThingWorx Flow 的實例:
flow-deploy settings upload -f <Path_to_Customization_File> -k UseLatestDomainVersions -t <ThingWorx_Base_URL> -u <ThingWorx_Administrator_Username> -p '<ThingWorx_Administrator_Password>' -c windchill -s default
此指令會取用 settings.json 檔案中 UseLatestDomainVersions 的值,並將其上載至 ThingWorx Flow 伺服器。
* 
不建議您將 ThingWorx Flow 配置為使用尚未經過測試與認證的 WRS 版本。所有功能都可能無法與您設定的 WRS 版本搭配使用。
ThingWorx Flow 配置為使用不同的 Windchill 網域版本
如果您想讓 ThingWorx Flow 針對 WRS 使用各種 OData 網域版本,您需要更新 ThingWorx Flow 伺服器上的 Windchill domainVersionConfig.json 檔案。為此,請依照下列步驟執行:
1. 導覽至資料夾 Installation_Directory > modules > node_modules > ptc-windchill-connector > common > lib > v1。使用所需 OData 網域版本開啟並更新 domainVersionConfig.json 檔案。
2. ThingWorx ComposerWorkflowSubsystem 中執行 RefreshMetadata 服務。
3. 重新啟動所有 ThingWorx Flow 服務。
這是否有幫助?