【宜搭】低代码开发师高级认证实操题2指导

本文详细介绍了如何完成宜搭低代码开发的高级认证实操题,涉及表单创建、代码调试与云部署、FaaS连接器配置、自动化集成以及流程表单自动化配置。通过解题步骤的讲解,包括加密解密逻辑、连接器配置、自动化流程设计,展示了完整的实操流程,旨在帮助读者理解并掌握低代码开发的关键技术。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

知识点: 云原生 宜搭自动化 java 云部署 FaaS连接器配置 流程表单
难度: 中等

在本文中,我将根据题目的每一点要求,对于我在实操过程中遇到的难点进行比较详细的介绍,供大家参考,希望能够对大家有所帮助。

解题步骤:

表单的创建
  • 三个普通表单,密钥维护页 敏感信息提交页 存档页
  • 一个流程表单 授权查看页

此处比较简单,不作过多赘述

代码调试及云部署
  • 下载对应代码doc文档
  • 将包含代码加密和解密的代码内容复制到doYourBusiness方法中,记住,新代码需要完全覆盖原代码。如下图。
    图一
图1.1 doYourBusiness方法

  • 配置完factory中的代码后,创建DESUtil.java,将对应文件的代码复制进去,调整代码格式。然后运行文件,查看控制台是否输出对应的字符串,如果输出相应的字符串,则说明factory中的代码配置完毕。

  • 连接器工厂factory里还有宜搭连接器入口方法,需要调用写有业务逻辑代码的doYourBusiness方法。把示例1的代码取消注释就行。如下图。
    在这里插入图片描述

图1.2 doYourBusiness方法

注意: 一些对应方法是否被导入,如果未导入对应的方法,会显示下滑红线,需要右键import导入对应的方法。

经过以上三步操作后,需要在分支 (‘Y’) 提交修改并提交代码到分支上,而后进入在线部署页面,将环境选项设置为 “线上环境” ,点击 “部署” ,查看控制台终端输出内容,若配置成功,会输出 “配置完成” 相关字样。

FaaS连接器配置

创建handleRequest连接器,如图所示。
在这里插入图片描述

图2.1 创建连接器动作handleRequest

在这里插入图片描述

图2.2 handleRequest连接器接口发送body

在这里插入图片描述

图2.3 handleRequest连接器接口返回body

集成自动化配置

配置加密自动化集成,具体逻辑如图,连接器Body配置如图所示。
在这里插入图片描述

图3.1 加密自动化配置

流程表单的自动化配置
授权查看页:
  • 申请人——成员组件:公式编辑如图所示。
    在这里插入图片描述
图4.1 申请人组件公式编辑

  • 待解密的信息——关联表单:关联属性的关联表单配置如图所示。
    在这里插入图片描述
图4.2 待解密信息关联表单配置

  • 待解密的信息——文本框:数据联动配置如图所示。
    在这里插入图片描述
图4.3 待解密信息文本框数据联动配置

流程自动化设计如图所示:

在这里插入图片描述

图4.4.1 审批流程自动化配置

在这里插入图片描述

图4.4.2 审批流程自动化连接器Body设置

注意:
DoYourBusiness方法体修改:
由于此时返回的解密内容为json对象,包括result、success、error三个属性,而按照提议,我们只需要返回result对象中的内容,所以,这里需要修改一下doYourBusiness方法里return后的返回值,如图所示。
在这里插入图片描述

图4.5 doYourBusiness方法返回值修改

经过以上修改之后,无论是加密还是解密,返回的结果,都是result对象result属性里的结果,正是我们想要的结果。这里修改代码之后,也要分支提交和重新部署线上环境

最终调试

测试一下,在授权查看页提交要查看的加密信息之后,宜搭会在工作通知里下我发送审批信息,审批通过之后,工作通知会再向我发送通知“成功了”。

在这里插入图片描述

图5.1 授权查看审批发起

在这里插入图片描述

图5.12 通过后返回“成功了!”通知



以上就是我在进行高级认证时实操题2的实现过程。如果觉得有帮助的话,请点个“赞”吧,我将持续更新,尽情期待。

题目如下 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
评论 49
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

Ag+Cu

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

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

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

打赏作者

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

抵扣说明:

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

余额充值