Legacy Automation package
actions 中 Legacy Automation package 的僅用於遷移 bots ,以確保它們在中無縫運行 Automation 360。 我們不建議將此套件用於新 bot 的開發。
註: 如果您使用 bot actions Legacy Automation package 從或 Build 5322 更早版本建立 , actions 當您以 bot 預設 package 版本開啟時 , 將會遺失。您必須重新插入 actions 並重新填充字段。
表達式
表達式出現在 action 輸入字段中。 package 這有以下表達式:
運算式 | 描述 | 使用範例 |
---|---|---|
DictionaryToString |
將字典變量轉換爲字符串變量 | {{$dictionaryVar.LegacyAutomation:dictionaryToString$}} 輸出是具有以下值的字符串變量: |
GetBotPath | 修改 bot Enterprise 11 或中路徑變量的值 Enterprise 10 bots ,並根據 bot Automation 360 系統信息庫將其替換爲相對路徑。 | |
GetDecremenedNumber |
將相應變量的值減 1 。它主要用於列表、記錄或表變量的索引位置。 | $myArray[$Loop-Counter-1.LegacyAutomation:getDecremenedNumber$][0]$
|
GetIncrementedNumber |
將相應變量的值增加 1 。它主要用於列表、記錄或表變量的索引位置。 | $Loop-Counter-1.LegacyAutomation:getIncrementedNumber.number:toString$ 每 次循環迭代時, myNumber 的輸出增加 1 。 |
GetKeystore 密鑰庫計數 |
計算短語 / 文本中擊鍵的值 註: 特殊字符(如 [Tab] 、 [End] 或 [Page down] )被視爲一個擊鍵。 |
$Keystrost-CharLength.LegacyAutomation:getKeyKeystore Count.String:ToNumber$ 輸出是每個擊鍵的平均延遲。 |
GetLegacyIndexValue |
從 bots 遷移自 Enterprise 11 或中的列表變量的特定索引位置檢索該值 Enterprise 10。如果索引位置大於列表變量的大小,系統將從遷移列表的第一個索引位置檢索該值 bots | |
ListToString |
將列表變量轉換爲字符串變量。 | {{$listVar.LegacyAutomation:listToString$}} 輸出是具有以下值的字符串變量: |
ListToTable |
將列表變量轉換爲表變量。 | {{$my-list-variable.LegacyAutomation:listToTable$}} 輸出是一個表變量,其中每個列值都是單個列中的單元格。 |
ParseLegacyKeys |
確保 Enterprise 10Enterprise 11 bots 在執行時成功執行 / 存儲在變量中的 Insert Key Stroke 命令。此表達式在 Automation 360 執行過程中將它們轉換爲等效的鍵筆劃。 註: Version 11.3 和之間的某些特殊字符的外觀不同。 Automation 360例如, Page Up 鍵在中顯示爲 [page up ] , Version 11.3 在中顯示 [page-up ] 。 Automation 360此差異不會影響 bot 功能。 |
$Test.LegacyAutomation:parseLegacyKeys$ |
ParseVariableOperation |
分析 Enterprise 10/Enterprise 11 變量操作 命令中提供的表達式。此表達式確保 Automation 360 在 Enterprise 10Enterprise 11 bots 執行時返回與 / 相同的輸出。 | $prompt-assignment.LegacyAutomation:parseVariableOperation$ |
TableToString |
將表變量轉換爲字符串變量。 您也可以使用冒號、分號或空格等分隔符來分隔輸出中字符串變量的值。 |
{{$tableVar.LegacyAutomation:tableToString$}} 輸出是具有以下值的字符串變量: 使用冒號、分號或空格作爲 <"delimerations"> : {{$tableVar.LegacyAutomation:tableToString(<"delimer">)$}} 例如:
輸出是字符串變量
具有以下值:
|
TableToList |
將表變量轉換爲列表變量。 | {{$DataTable.LegacyAutomation:tableToList(<column_index>)$}} ,例如: {{$DataTable.LegacyAutomation:tableToList(2)$}} 輸出是具有以下值的列表變量: |