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

工作流活动

AddQueueItem

在 Orchestrator 队列中添加新项目。项目的状态将为新。

定义

命名空间: UiPath.Activities.System.API

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

重载

AddQueueItem(String)在 Orchestrator 队列中添加新项目。
AddQueueItem(String, String)从指定的文件夹路径在 Orchestrator 队列中添加新项目。
AddQueueItem(String, String, DateTime, Dictionary<String, Object>, DateTime. QueueItemPriority, String, Int32)在 Orchestrator 队列中添加新项目以及其他配置。

AddQueueItem(String, String)

在 Orchestrator 队列中添加新项目。

void AddQueueItem(
    string queueType
)
void AddQueueItem(
    string queueType
)

queueType String : 要添加队列项目对象的队列。

AddQueueItem(String, String)

从指定的文件夹路径在 Orchestrator 队列中添加新项目。

void AddQueueItem(
    string queueType,
    string folderPath
)
void AddQueueItem(
    string queueType,
    string folderPath
)

queueType String : 要添加队列项目对象的队列。

folderPath String : 指定队列所在的文件夹路径(如果与运行流程的文件夹不同)。此字段仅支持字符串值,并使用/作为分隔符来表示子文件夹。例如"Finance/Accounts Payable"

AddQueueItem(String, String, DateTime, Dictionary<String, Object>, DateTime. QueueItemPriority, String, Int32)

在 Orchestrator 队列中添加新项目以及其他配置。

void AddQueueItem(
    string queueType,
    string folderPath,
    DateTime dueDate,
    Dictionary<string, Object> itemInformationCollection,
    DateTime deferDate,
    QueueItemPriority priority,
    string reference,
    int timeoutMS
)
void AddQueueItem(
    string queueType,
    string folderPath,
    DateTime dueDate,
    Dictionary<string, Object> itemInformationCollection,
    DateTime deferDate,
    QueueItemPriority priority,
    string reference,
    int timeoutMS
)

queueType String : 要添加队列项目对象的队列。

folderPath String : 指定队列所在的文件夹路径(如果与运行流程的文件夹不同)。此字段仅支持字符串值,并使用/作为分隔符来表示子文件夹。例如"Finance/Accounts Payable"

dueDate “日期时间” :应处理队列项目的截止日期。除了“优先级”“延期”之外,此参数也是一个用于确定队列项目优先级的条件。此参数可以使用相对日期填充,例如DateTime.Now.AddHours(2)DateTime.Now.AddDays(10)DateTime.Now.Add(New System.TimeSpan(5, 0, 0, 0)) 。此外,您可以使用美国日期表示法来添加确切时间,例如 1 2/10/2017 07:40:00 。系统能自动更正此日期。例如,如果您写入8 9 2018 9:0 ,系统会将其自动转换为08/09/2018 09:00:00

itemInformationCollection字典字符串(字符串)对象:允许导入队列项目的整个信息字典。

deferDate “日期时间” :处理队列项目之前的日期。除了“截止日期”和“截止日期”之外,此参数也是一个用于确定队列项目优先级的条件。此参数可以使用相对日期填充,例如DateTime.Now.AddHours(2)DateTime.Now.AddDays(10)DateTime.Now.Add(New System.TimeSpan(5, 0, 0, 0)) 。此外,您可以使用美国日期表示法来添加确切时间,例如 1 2/10/2017 07:40:00 。系统能自动更正此日期。例如,如果您写入8 9 2018 9:0 ,系统会将其自动转换为08/09/2018 09:00:00

priority “队列项目优先级” :要添加的队列项目的优先级。此属性与dueDatedeferDate一起作为队列项目优先级的条件。

reference String : 对添加的队列项目的引用。该引用可用于将您的事务链接到自动化项目中使用的其他应用程序。此外,此功能使您可以根据提供的字符串在 Orchestrator 中搜索特定事务。

timeoutMS Int32 :指定等待时间(以毫秒为单位),如果超出该时间后活动并未运行,系统便会抛出错误。默认值为 30000 毫秒(30 秒)。

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新