ThingWorx Flow > 安裝與組態 > 配置 ThingWorx Flow > 在 ThingWorx Flow 中設定檔案傳輸聯合
在 ThingWorx Flow 中設定檔案傳輸聯合
先決條件
請遵循配置 ThingWorx 聯合中的步驟來設定 ThingWorx 聯合。
步驟
完成下列步驟以設定在 ThingWorx Flow 中的檔案傳輸:
1. 在內部部署系統中,使用 FileRepository 作為基礎物範本來建立一個 WindchillSystemRepository 物件。
2. 在您的內部部署系統中,於 WindchillSystemRepository 物件中建立一個「工作流程」服務 WindchillUploadFileService,以從 Windchill 下載文件,然後使用 ThingWorx「上載檔案」檔案動作將其上載至 WindchillSystemRepository
3. 在您的「雲端系統」中,使用 RemoteThingWithFileTransfer 作為基礎物範本來建立一個 RemoteThingWithFileTransfer 物件。欲將此 RemoteThing 與內部部署 WindchillSystemRepository 繫結,您需要填入「識別元」欄位。
「識別元」欄位的值採用 nameOfThing@ServerIdentificationName 格式。例如,如果您內部部署 FederationSubsystem 的伺服器識別名稱為 publisher,且物件的名稱為 WindchillSystemRepository,則「識別元」欄位的值為 WindchillSystemRepository@publisher
4. 欲核對連線是否已成功,請導覽至 RemoteThingWithFileTransfer「物件內容」頁,並確保 isConnected 內容為 true
5. 執行下列步驟來透過雲端 ThingWorx 實例呼叫內部部署 WindchillUploadFileService
a. 轉至 RemoteThingWithFileTransfer「服務」頁,然後按一下「瀏覽遠端服務」。即會顯示所有可用的遠端服務。
b. 搜尋 WindchillUploadFileService 並進行拖曳以建立新服務。
6. 在您的雲端系統中,於 RemoteThingWithFileTransfer 物件中,建立一個「工作流程」服務 UploadWindchillFileToBox,使其包含下列動作:
WindchillRemoteService 動作 - 從 Windchill 下載文件,然後將其上載至內部部署 WindchillSystemRepository
CopyFileFromOnPremToCloud 動作 - 將檔案從內部部署 WindchillSystemRepository 複製到雲端 SystemRepository
Box 下的「上載檔案」動作 - 將檔案上載至 Box 帳戶。
核對
在雲端系統中執行工作流程,會觸發內部部署系統中的工作流程,並會執行下列任務:
會將 Windchill 內容檔案下載至 WindchillSystemRepository
會將 Windchill 內容檔案從內部部署 WindchillSystemRepository 複製到雲端 SystemRepository
會將 Windchill 內容檔案上載至 Box 帳戶。
這是否有幫助?