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

关于编码应用程序项目

Studio Web 中的编码应用程序项目架构,涵盖 Studio Web 和本地 IDE 如何划分职责,以及哪些文件在每个阶段很重要。

Studio Web 中的编码应用程序项目是位于解决方案中的专业代码项目。Studio Web 拥有项目的身份及其发布生命周期。应用程序的源代码编写在您自己的本地项目中,并使用 UiPath CLI 推送到 Studio Web。

Studio Web 拥有的内容以及您的 IDE 拥有的内容​

关注由 Studio Web 拥有由本地 IDE 所有
解决方案中的项目身份✅—
webAppManifest.json (项目类型和配置)✅—
从推送的消息中注册绑定 bindings_v2.json✅—
解决方案级别的发布和部署✅—
上次推送来源的只读视图✅—
源代码创作、框架选择、依赖项—✅
bindings_v2.json — 声明应用程序使用哪些 Orchestrator 资源—✅
Debugging the last pushed version of the app✅—
Local dev server, previewing the running app, local debugging—✅

重要文件​

在 Studio Web 中初始化项目后​

Studio Web 创建单个文件:

文件用途
webAppManifest.json描述项目的类型 (Coded) 和配置。由 Studio Web 拥有 — 您无法直接对其进行编辑。

示例:

{
  "type": "Coded",
  "solutionResourceSubType": "CodedAction",
  "config": {
    "isCompiled": true,
    "isActionApp": true
  }
}
{
  "type": "Coded",
  "solutionResourceSubType": "CodedAction",
  "config": {
    "isCompiled": true,
    "isActionApp": true
  }
}

在本地项目中(您构建和推送的项目)​

您的本地项目是您选择的框架生成的任何项目。Studio Web 不需要特定的文件夹结构;系统仅存储您推送的内容。

如果应用程序在运行时需要 UiPath 资源,则可以在推送内容的根目录中使用bindings_v2.json文件声明这些资源。Studio Web 在推送时读取此文件并注册每个已声明的资源 — 请参阅绑定和 runtime 资源。

Debug the app from Studio Web​

Studio Web can run the last version of the app that you pushed in a debug session. The app must have an External App ID. Studio Web adds the redirect URI that the debug session needs to that external application, so you do not edit it yourself.

  1. Push the app from your local project:

    uip codedapp push --project-id <project-id>
    uip codedapp push --project-id <project-id>
    
  2. In Studio Web, open the coded app project and select Debug. Studio Web opens the app in a new tab and signs you in through the app's external application. To return to that tab, select Open app.

  3. Use the app. Processes that the app starts run as debug jobs in Orchestrator.

  4. To end the session, select Stop. Closing the app tab or the Studio Web tab also ends the session, and stops the jobs that the app started.

Debug sessions have these limits:

  • A coded action app runs without an Action Center task, so calls that read task data fail.
  • Backends that the app calls on another origin must allow the X-UIPATH-JobKey header in their CORS settings.

下一步转到哪里​

了解有关使用编码应用程序项目的更多信息:

此页面有帮助吗?

连接

需要帮助? 支持(opens in new window)

想要了解详细内容? UiPath Academy(opens in new window)

有问题? UiPath 论坛(opens in new window)

保持更新