如何迁移 AAApplicationPath 变量
- Updated: 2022/02/14
Enterprise 11 和 Enterprise 10 中使用 AAApplicationPath 变量来指定在当前 bot 中使用的 bot 或文件的物理路径。 AAApplicationPath 系统变量将返回用户在名为客户端应用程序的工具 > “选项”中设置的路径。
使用已还原的 Enterprise 11 数据库从 Enterprise 11 进行迁移
在您使用已还原的 Automation 360 数据库迁移到 Enterprise 11 时,迁移流程将执行以下操作:
- 使用 bot 迁移首个 Bot Migration Wizard 时,系统将创建 AAApplicationPath 全局值。
- 复制为 Enterprise 11 中的每个用户指定的 AAApplicationPath 系统变量的值,并针对 Automation 360 中的所有这些用户,将此值设置为 AAApplicationPath 全局值。
- 使用 Enterprise 11 bots 中可用的 AAApplicationPath 全局值来更新您在 Automation 360 Control Room 中使用的参考,从而无需更新已完成迁移的 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 中使用的该值。 此更新确保了,当您在 bot 中运行 Automation 360 时,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 中使用的该值。
请参阅 手动迁移的先决条件。