探索應用程式 > Software Content Management
Software Content Management
透過 Software Content Management,您可建立軟體封包以立即部署,或於已排程的未來時間中完成部署。您也可以在使封裝與部署用於生產之前對其進行測試。此外,系統也提供了搜尋及稽核封裝與部署的工具。
若需詳細資訊,請參閱 ThingWorx 公用程式說明中心內的 ThingWorx Software Content Management
* 
Software Content Management 圖標僅在獲得企業授權後可見。
新增 Software Content Management 圖標至主控台
若要新增 Software Content Management 圖標至 ThingWorx Apps 主控台,匯入選用的 ThingWorx-Software-Content-Management-<version>延伸功能。若需進一步資訊,可參閱 匯入選用延伸功能
新增權限以檢視 Software Content Management 圖標
具備控制工程師、維護管理員、維護工程師角色的使用者,完成下列步驟即可啟用 Software Content Management
1. ThingWorx Composer 中開啟 TW.UTL.UtilSetupHelper 資源。
2. 「服務」下,使用 orgOrOrgUnit 輸入參數的下列值執行 AdjustUtilitiesVisibility 服務:PTC.Factory.MachineVisibility:AssetPerformance。當服務輸出窗格顯示「無結果」時,表示服務已成功完成。
3. 在左窗格中導覽至 安全性 > 使用者群組
Controls Engineer 使用者群組新增至 TW.RSM.Admin 使用者群組,以獲得管理存取權限。
新增 Maintenance ManagerMaintenance Engineer 使用者群組,至 TW.RSM.RemoteServices 使用者群組,以使其可存取遠端存取動作,例如檔案傳輸、部署、遠端連線。
配置資產以用於 Software Content Management
若要在 Software Content Management 中使用資產,請完成下列步驟:
1. ThingWorx Composer 中,導覽至資產,並對其進行編輯。資產可以是「資產」「以 KEPServerEX 為基礎的資產」,也可以是 配置為顯示在 Asset Advisor 中的自訂設備類型
2. 「一般資訊」下,新增下列「已實行的形式」
PTC.Asset.ManagedAsset
TW.RSM.SFW.ThingShape.Updateable
PTC.Resource.Asset.SCMResourceThingShape
3. PTC:AssetType 新增至標籤
4. 按一下「儲存」
如需有關在 Software Content Management 中使用已配置資產的詳細資訊,請參閱 ThingWorx 公用程式說明中心內的 建立以檔案為基礎的封裝
配置檔案傳輸記錄資料流
ThingWorx Apps 使用資料流 PTC.SCA.SCO.AssetRemoting.FileTransferHistoryStream,以記錄檔案傳輸事件,而 Software Content Management 則是使用 TW.RSM.FileTransferHistoryStream。若要確保檔案傳輸事件已於 ThingWorx Apps 中正確擷取,請在 ThingWorx Composer 中完成下列步驟:
編輯 TW.RSM.FileTransferHelper 項目。在「組態」下,設定「檔案歷史記錄資料流項目」PTC.SCA.SCO.AssetRemoting.FileTransferHistoryStream。按一下「儲存」
將資料從 TW.RSM.FileTransferHistoryStream 項目複製到 PTC.SCA.SCO.AssetRemoting.FileTransferHistoryStream 項目。
若您的資料不到 5 萬列,則可參考下列網址的說明: 如何將條目從一個串流複製到另一個串流
若您的資料超過 5 萬列,則針對您的 ThingWorx 資料庫使用合適的原生 SQL 指令集,類似下列範例。執行指令集之前,備份您的 ThingWorx 資料庫。
INSERT INTO stream (entity_id,source_id,time,field_values,location,source_type,tags)
SELECT 'PTC.SCA.SCO.AssetRemoting.FileTransferHistoryStream',source_id,time,field_values,location,source_type,tags
FROM <your_thingworx_schema_name>.stream
WHERE entity_id= 'TW.RSM.FileTransferHistoryStream'