AAApplicationPath 變數的移轉方式
- 已更新: 2022/02/14
AAApplicationPath 變數的移轉方式
AAApplicationPath 變數用於 Enterprise 11 和 Enterprise 10,以指定當前bot使用的bot實體路徑或檔案。AAApplicationPath 系統變數傳回使用者在所謂的“用戶端應用程式”的 [工具] > [選項] 設定的路徑。
使用還原的 Enterprise 11 資料庫從 Enterprise 11 進行移轉
當您使用還原的 Enterprise 11 資料庫移轉至 Automation 360 時,移轉程序會執行下列動作:
- 當使用Bot Migration Wizard移轉第一個bot時,建立 AAApplicationPath 全域值。
- 為每個 Enterprise 11 中的使用者指定 AAApplicationPath 系統變數,將其值複製並為 Automation 360中所有使用者,將該值設定成 AAApplicationPath 全域值。
- 更新您在 Enterprise 11 bots中使用的參考,搭配在 Automation 360 Control Room 中提供的 AAApplicationPath 全域值,消除更新已移轉bots的任何要求,以便使用 AAApplicationPath。
- 更新 Enterprise 11 bot設定的 [執行任務] 命令路徑。例如,如果 [執行任務] 命令的路徑在 Enterprise 11 設為 $AAApplicationPath$\Automation Anywhere\My Tasks\child-task.atmx,此路徑會自動轉換為 Bots\My Tasks\child-task.atmx after migration。
因此,不需要手動更新,而且bot會在移轉後以相同方式執行。
移轉自 Enterprise 10
當您從 Enterprise 10 移轉時,必須在 Automation 360 中手動建立 AAApplicationPath 全域值,並選取 [可變更] 選項。建立 AAApplicationPath 全域值後,在 Enterprise 10 中使用 AAApplicationPath 系統變數的所有使用者,都必須更新 AAApplicationPath 全域值,搭配用於 Enterprise 10 中的值。此更新可確保當您在 Automation 360 中執行bot時,AAApplicationPath 資料夾值對每個使用者來說都是唯一解析。
範例:如果 AAApplicationPath 的 Enterprise 10 路徑值為 D:\John.Doe\My Documents\Automation Anywhere Files,則您必須在 Automation 360 中建立 AAApplicationPath 全域值並使用此路徑更新。
手動從 Enterprise 11 或 Enterprise 10 移轉
當您從 Enterprise 11 或 Enterprise 10 移轉時,必須在 Automation 360中手動建立 AAApplicationPath 全域值,並選取 [可變更] 選項。建立 AAApplicationPath 全域值後,在 Enterprise 11 或 Enterprise 10 中使用 AAApplicationPath 系統變數的所有使用者,都必須更新 AAApplicationPath 全域值,搭配用於 Enterprise 11 或 Enterprise 10 中的值。
請參閱手動移轉的先決條件。