activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

工作流活动

上次更新日期 2025年3月25日

GetQueueItems

使您能够根据创建日期、优先级、状态和引用等多个筛选条件,从指定的 Orchestrator 队列中检索最多 100 个事务的列表。 使用 分页 配置可以获取不同的集合。

定义

命名空间: UiPath Activities.System.API

程序集: UiPath.System.Activities.Api(在 UiPath.System.Activities.Api.dll 中)

重载

  
GetQueueItems(String)从指定队列检索事务列表。
GetQueueItems(String, String)从指定队列和特定 Orchestrator 文件夹中检索事务列表。
GetQueueItems(String, String, Nullable<Int32>, Nullable<Date Time>,可为 Nullable<Int32>、队列项目状态 Nullable<Date Time>, ReferenceFilterStrategy, String, Int32, Int32, Int32)根据多个筛选器(如创建日期、优先级、状态和引用),从指定的队列中检索事务列表。

GetQueueItems(String)

从指定队列检索事务列表。

 [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]IEnumerable<QueueItem> 获取队列项目 ( string queueName )
队列名称 字符串
要从中提取数据的队列的名称。 该名称必须与 Orchestrator 中的名称相同,且要使用相同的大小写。

GetQueueItems(String, String)

从指定队列和特定 Orchestrator 文件夹中检索事务列表。

 [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]IEnumerable<QueueItem> GetQueueItems(string queueName, string folderPath)
队列名称 字符串
要从中提取数据的队列的名称。 该名称必须与 Orchestrator 中的名称相同,且要使用相同的大小写。
文件夹路径 字符串
指定队列所在文件夹的路径( 如果与运行流程的文件夹不同)。 此字段仅支持字符串值,并使用 / 作为分隔符来表示子文件夹。 例如 "Finance/Accounts Payable"

GetQueueItems(String, String, Nullable<Int32>, Nullable<Date Time>, Nullable<Int32>, QueueItemStates, Nullable<Date Time>, ReferenceFilterStrategy, String, Int32, Int32, Int32)

根据多个筛选器(如创建日期、优先级、状态和引用),从指定的队列中检索事务列表。

 [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]IEnumerable<QueueItem> GetQueueItems( string queueName, string folderPath, int?duration, DateTime? 从、 int?优先级、队列项目状态、队列项目状态、日期时间? to,ReferenceFilterStrategy filterStrategy, stringreference, int skip, int top, int timeout(MS)
队列名称 字符串
要从中提取数据的队列的名称。 该名称必须与 Orchestrator 中的名称相同,且要使用相同的大小写。
文件夹路径 字符串
指定队列所在文件夹的路径( 如果与运行流程的文件夹不同)。 此字段仅支持字符串值,并使用 / 作为分隔符来表示子文件夹。 例如 "Finance/Accounts Payable"
duration 可为 Null<Int32>
按事务在上次尝试中花费的最短时间筛选事务。
发件人 可以为 null<日期时间>
按最早创建日期筛选事务。 它接受 DateTime 值。
优先级 可为 Null<Int32>
根据优先级筛选事务。 此字段仅支持整数和整数变量。 优先级如下:
  • 0 - 高
  • 1 - 正常
  • 2 - 低
queueItemStates 队列项目状态
筛选 队列项目状态。 提供以下选项:
  • All - 默认选项。
  • 新添加
  • 正在进行
  • 失败
  • 成功
  • 已放弃
  • 已重试
  • 已删除
可以为 null<日期时间>
根据最早创建日期筛选事务。 它接受 DateTime 值。
filterStrategy 参考筛选器策略
根据引用筛选时要使用的策略。 提供以下选项:
  • StartWith - 查找其引用以“ 引用 ” 字段中指定的值开头的项目。
  • Equals - 查找引用与“ 引用 ” 字段中指示的值相同的项目。
参考 字符串
按引用筛选 Orchestrator 队列 项目。
跳过 Int32
帮助您跳过前“n”个项目。
顶部 Int32
仅返回总数中的指定项目数量。 最大值为 100。
超时 (毫秒) Int32
指定等待时间 (以毫秒为单位)。如果超出该时间活动未运行,就会引发错误。默认值为 30000 毫秒 (30 秒)。

返回值

枚举值<QueueItem>

相应的队列项目。

此页面有帮助吗?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath Logo White
© 2005-2025 UiPath。保留所有权利。