使用UiPath和AA构建的解决方案 5. 使用UiPath ReFramework处理采购订单

在本章中,我们将使用UiPath Robotic Enterprise Framework(简称ReFramework)创建自动化。ReFramework是一个快速构建强大的UiPath自动化的模板。它可以作为所有UiPath项目的起点。

模板可以满足您在任何自动化中的大部分核心需求——在配置文件中读取和存储数据,强大的异常处理和事件日志记录。我们将在完成该项目时深入研究框架的细节。

在这个项目中,我们将使用UiPath机器人企业框架(ReFramework)来处理采购订单。我们将从电子表格中读取PO,将其输入到PO应用程序中,并将生成的PO编号写回电子表格中。

在配置这些任务时,我们将涵盖以下内容:

  • UiPath ReFramework的基础知识
  • 使用不同的ReFramework状态
  • 使用Dispatcher和Performer进行并行处理
  • 使用Orchestrator队列
  • UiPath Excel操作
  • UiPath web应用程序自动化

技术要求

让我们看看这个项目所需的硬件和软件:

  • 安装了UiPath社区版19+的电脑。
  • 安装了UiPath扩展的Google Chrome。
  • 访问UiPath Orchestrator。
  • Apptivo SaaS ERP应用程序与PO应用程序。您可以在上免费注册https://www.apptivo.com.
  • Microsoft Excel 2007或更高版本。

本章的代码将会随着本章的发布提供。

项目概述

组织创建采购订单以从供应商处采购物料。通常,根据组织的规模,会生成很多PO。

对于这个项目,我们假设我们正在处理大量的采购订单。采购订单列

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
题目如下 In this exercise, you will create a UiPath automation that performs the steps below. To achieve this, you will use the REFrameWork as the starting template and follow the UiPath development best practices. Here are the steps performed by the Robot: 1. Log in to https://www.acme-test.com. 2. On the landing page, Dashboard, click on the Work items menu item. Scrape the data in all the pages of the table, page by page, ensuring error handling and recovery. 3. For each page: - Filter the records where Status is 'Open'; - Filter the records where Type is 'WI5'; - Filter the records where WIID is less than 500000; - Append the resulting datatable into an Excel worksheet; you shouldn't worry about the headers and format of the output file. Constraints to follow in the development, using the REFrameWork: 1. TransactionItem datatype should be a String. The process should recover and retry in case of errors in navigation between WorkItems page. One transaction is the action of scraping one web page.By navigating to the next page, the next transaction will execute. (Same as ACME Process 4 Dispatcher from the UiPath Academy). 2. Create a separate workflow file for the Login to ACME. File input arguments: URL ; Username ; Password . 3. Create a separate workflow file for closing ACME. 3. Add the ACME_URL and ACME_Credential to the Config file. 4. Populate InitAllApplications.xaml from the Framework folder with Invoking the Login to ACME and navigation to the Work Items. 5. Populate CloseAllApplications.xaml from the Framework folder with Invoking the Close ACME. 6. Populate KillAllProcesses.xaml from the Framework folder with killing the process used. 7. Populate the Process.xaml file with the following actions: Web scraping, Filtering and Appending to Excel. Important Note: Don't use external file references, outside of the project folder (including Orchestrator Assets). Place all the used files within the project folder, zip that folder and upload it to the UiPath Certification Platfor
你可以使用以下 Python 代码来显示 aa 文件夹下所有的 .txt 文件并使用递归方法删除文件夹 aa: ```python import os # 显示 aa 文件夹下所有的 .txt 文件 def show_txt_files(path): for file_name in os.listdir(path): file_path = os.path.join(path, file_name) if os.path.isdir(file_path): show_txt_files(file_path) elif file_name.endswith('.txt'): print(file_path) # 递归删除文件夹 aa def remove_aa_folder(path): for file_name in os.listdir(path): file_path = os.path.join(path, file_name) if os.path.isdir(file_path): remove_aa_folder(file_path) else: os.remove(file_path) os.rmdir(path) # 测试代码 aa_path = 'aa' show_txt_files(aa_path) remove_aa_folder(aa_path) ``` 该代码会首先定义两个函数:`show_txt_files` 和 `remove_aa_folder`。 `show_txt_files` 函数用于显示 aa 文件夹下所有的 .txt 文件。它会遍历 aa 文件夹下的所有文件和文件夹,如果遇到文件夹,就递归调用自身来处理该文件夹下的文件;如果遇到 .txt 文件,就输出该文件的路径。 `remove_aa_folder` 函数用于递归删除文件夹 aa。它会首先遍历 aa 文件夹下的所有文件和文件夹,如果遇到文件夹,就递归调用自身来删除该文件夹下的文件和文件夹;如果遇到文件,就使用 `os.remove` 函数删除该文件。最后,使用 `os.rmdir` 函数删除空的 aa 文件夹。 接下来,我们可以测试这两个函数。首先调用 `show_txt_files` 函数来显示 aa 文件夹下所有的 .txt 文件,然后调用 `remove_aa_folder` 函数来删除文件夹 aa

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Martin-Mei

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值