You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Blue Prism RPA:如何直接从大型机字段生成集合替代逐行添加?

Blue Prism: Bulk Collect Rocket PC to Host Fields into a Collection

Great question! I’ve tackled this exact scenario with Blue Prism and Rocket Terminal Emulator before—so yes, you absolutely can skip the tedious loop of adding fields one by one. Here are the most efficient methods:

Method 1: Use Rocket's Screen Region Capture to Map Directly to a Collection

This is my go-to for bulk field extraction:

  • First, in your Rocket PC to Host client, define a single screen region that covers all 16 target fields. Use Rocket's built-in field selection tool to outline the area and mark each individual field's boundaries within that region.
  • In Blue Prism, open the Rocket Terminal Emulator VBO and look for an action like Extract Region to Collection (names might vary slightly by VBO version).
  • Pre-create a Blue Prism collection with 16 columns matching your field names. When configuring the VBO action, map each marked field in the Rocket region directly to the corresponding collection column. Run the action, and it will populate the entire collection row in one go—no loops needed.

Method 2: Leverage Rocket's Predefined Field Groups

If you reuse these 16 fields regularly, this method saves long-term maintenance:

  • In the Rocket client, create a Field Group that includes all 16 fields. Save this group so it’s accessible via the client’s field library.
  • In Blue Prism, use the Rocket VBO’s Retrieve Field Group action. This action will fetch all values from the predefined group and return them as a structured dataset.
  • Use Blue Prism’s Convert Dataset to Collection action to turn that dataset into your target collection. The best part? If the mainframe screen’s field positions change later, you only need to update the Field Group in Rocket—no changes to your Blue Prism flow.

Method 3: Bulk Mapping with Data Items (If VBO Actions Are Limited)

If your Rocket VBO doesn’t have the above actions, you can still avoid loops:

  • Use Rocket’s Get Multiple Fields action to pull all 16 field values into a single array or a set of named data items.
  • Create your target collection, then use Blue Prism’s Add Row with Bulk Mapping action. Map each data item/array element directly to the corresponding collection column in one configuration step. This skips the need for a loop to add each field individually.

Quick Notes to Keep in Mind

  • Ensure your Rocket VBO is up to date—older versions might lack bulk extraction features. If needed, you can also customize the VBO to add a bulk collection action by wrapping Rocket’s API calls.
  • Test for edge cases like padded spaces or dynamic field lengths in the mainframe screen. You can add quick string cleanup steps (like Trim actions) directly in the mapping if needed.

内容的提问来源于stack exchange,提问作者DestressedData

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.21 06:36:17