Legacy Automation package
Legacy Automation package 中的 actions 仅用于迁移的 bots 中,以确保它们在 Automation 360 中无缝运行。我们不推荐使用此软件包进行新 bot 开发。
注: 如果您使用 actions 从 Build 5322 或更早版本的 Legacy Automation package 构建 bot,则在使用默认 package 版本打开 bot 时,actions 将会丢失。您必须重新插入 actions 并重新填充字段。
表达式
表达式显示在 action 输入字段中。此 package 包含以下表达式:
表达式 | 描述 | 使用示例 |
---|---|---|
DictionaryToString |
将字典变量转换为字符串变量 |
{{$dictionaryVar.LegacyAutomation:dictionaryToString$}}
输出为具有以下值的字符串变量: |
GetBotPath |
修改 bot 或 Enterprise 11 Enterprise 10 中 bots 路径变量的值,并根据 bot 存储库将其替换为相对 Automation 360 路径。 | |
GetDecrementedNumber |
将相应变量的值减少 1。它主要用于列表、记录或表变量的索引位置。 | $myArray[$Loop-Counter-1.LegacyAutomation:getDecrementedNumber$][0]$
|
GetIncrementedNumber |
将相应变量的值增加 1。它主要用于列表、记录或表变量的索引位置。 | $Loop-Counter-1.LegacyAutomation:getIncrementedNumber.Number:toString$ myNumber 的输出随着循环的每次迭代而增加 1。 |
GetKeystrokeCount |
计算短语/文本中的击键值 注: 特殊字符,如 [TAB]、[END] 或 [PAGE DOWN],被计为一个击键。 |
$KeyStroke-CharLength.LegacyAutomation:getKeystrokeCount.String:toNumber$ 输出为每个击键的平均延迟。 |
GetLegacyIndexValue |
从 Enterprise 10 或 Enterprise 11 中迁移的 bots 列表变量的特定索引位置检索值。如果索引位置大于列表变量的大小,系统会从迁移的 bots 列表中的第一个索引位置检索值。 | |
ListToString |
将列表变量转换为字符串变量。 |
{{$listVar.LegacyAutomation:listToString$}}
输出为具有以下值的字符串变量: |
ListToTable |
将列表变量转换为表变量。 |
{{$my-list-variable.LegacyAutomation:listToTable$}}
输出为一个表变量,其中每个列表值都是单列中的单元格。 |
ParseLegacyKeys |
确保存储在变量中的 Enterprise 10/Enterprise 11 bots 的 Insert Key Stroke 命令在执行时成功。此表达式在执行过程中将其转换为等效 Automation 360 的击键。 注: 某些特殊字符的外观在 Version 11.3 和 Automation 360 之间有所不同。例如,Page Up 键在 Version 11.3 中显示为 [PAGE UP],在 Automation 360 中显示为 [PAGE-UP]。此差异不会影响 bot 函数。 |
$Test.LegacyAutomation:parseLegacyKeys$ |
ParseVariableOperation |
解析 Enterprise 10/Enterprise 11 Variable Operation 命令中提供的表达式。此表达式可确保在执行 Automation 360 时返回与 Enterprise 11/Enterprise 10 bots 相同的输出。 | $prompt-assignment.LegacyAutomation:parseVariableOperation$ |
TableToString |
将表变量转换为字符串变量。 您还可以使用分隔符(例如冒号、分号或空格)分隔输出中的字符串变量值。 |
输出为具有以下值的字符串变量: 使用冒号、分号或空格作为 <"delimiter">:
For example:
输出为具有以下值的字符串变量: |
TableToList |
将表变量转换为列表变量。 |
输出为具有以下值的列表变量: |