studio
2024.10
false
重要 :
新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

Studio 用户指南

上次更新日期 2026年2月18日

使用库调用编码自动化

您可以在低代码 (XAML) 和编码自动化 (CS) 中重用编码自动化,方法是将其发布到库并在另一个项目中调用。

备注:

仅当导入的项目与原始库项目位于同一租户时,导出库的默认连接才适用于其他项目。

步骤

  1. 将同时包含低代码自动化和编码自动化的 Studio 项目发布到库。

在此示例中,我们将库视为myFavoriteLibrary。2. 打开其他项目,然后选择管理包。 3. 在“所有包”下,搜索并安装 myFavoriteLibrary。4. 在项目的“活动”面板中,根据要重用工作流的自动化类型执行以下步骤:

  • 对于低代码自动化:将工作流从已安装的库包拖放到当前工作流中。

  • 对于编码自动化:调用与库名称匹配的服务,并从已安装的库包中访问工作流。

    备注:

    服务名称始终以小写字母开头(例如 myFavoriteLibrary)。

    myFavoriteLibrary.<WorkflowFromThatLibrary>()
    myFavoriteLibrary.<WorkflowFromThatLibrary>()
    
  1. When you include the coded automation into another project as an invoked workflow in XAML files, you can modify its arguments. These arguments are available as properties inside the activity that invokes the coded automation. Optionally, you can also edit the arguments defined in the library as Activity Properties. To do this, go to the library project, right-click the workflow you wish to export, and select Activity Layout. This action displays the activity properties window that allows you to configure different options depending on the library compatibility (Windows-Legacy, Windows, Cross-platform). Unlike low-code automations, you cannot configure an icon or color for coded automations in libraries. Visit Configuring the Layout of an Activity for more information.

图 1. “活动属性”窗口,您可以在其中配置活动布局

“活动属性”窗口,您可以在其中配置活动布局

  • 步骤

此页面有帮助吗?

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