- 开始使用
- 最佳实践
- 功能
- 技能
- CLI
- 示例
- 高级
- 帮助
方法:使用 REFramework 实现基于队列的流程
Build a REFramework process that pulls items from an Orchestrator queue, with retries, logging, and exception handling.
Build a transactional process from the Robotic Enterprise Framework (REFramework) template that processes Orchestrator queue items.
先决条件
- Install and set up complete, and you are signed in.
- 一个至少包含 2 个示例项目的 Orchestrator 队列,或让智能体创建一个示例项目的请求。
Process items from a queue
-
在空项目文件夹中打开编码智能体。
-
描述任务并为模板命名:
"使用 REFramework 模板创建新的 RPA 项目,以处理 Orchestrator 中的
Invoices队列中的项目。对于每个项目,读取发票字段,将其过账到我们的财务系统,设置事务状态,并在失败时重试。” -
Review the Init, Get Transaction Data, Process Transaction, and End Process states, and the configuration file in the
Datafolder. -
Ask the agent to add the business logic to Process Transaction.
-
设置队列、重试计数和资产,但无需将其硬编码:
Config.jsonproject: retry count inConfig.json, queue on Get Transaction Item inFramework\GetTransactionData.xaml, assets through Get Asset or Get Credential.Config.xlsxproject: all three inConfig.xlsx.
-
要求智能体运行工作流分析器和单个测试事务。
-
Confirm the processed item moved to the expected status: Successful, Failed, or Retried. Untouched items stay New.
-
Confirm exceptions are logged.