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

UIP API 工作流绑定

“uip api-workflow绑定同步”的语法和选项,根据 API 工作流 JSON 生成绑定文件,为在 Studio Web 外部编写的解决方案。

uip api-workflow bindings生成每个项目的bindings_v2.json文件, uip solution resources refresh填充解决方案的资源目录时需要该文件。每当在设计器中打开工作流时,Studio Web 都会在内存中计算此文件;对于从未在 Studio 中打开的智能体编写的工作流,bindings sync 会离线执行相同的转换 — 它会遍历工作流,提取 IntSvc 连接器活动(跳过 Http 种类/隐式连接活动),按连接 UUID 进行重复数据删除,并系统会在工作流文件旁边写入 bindings_v2.json。

大纲​

uip api-workflow bindings sync --workflow <path>
uip api-workflow bindings sync --workflow <path>

uip api 工作流绑定同步​

选项​

标记描述
--workflow <path>必需。API 工作流 JSON 文件的路径。将 bindings_v2.json 写入同一目录中。

示例​

uip api-workflow bindings sync --workflow ./my-workflow/Workflow.json
uip api-workflow bindings sync --workflow ./my-workflow/Workflow.json

数据形状(--输出 json)​

{
  "Code": "BindingsSync",
  "Data": {
    "BindingsPath": "/work/my-workflow/bindings_v2.json",
    "ResourceCount": 3,
    "ActivitiesVisited": 12,
    "IntSvcActivities": 4,
    "DuplicatesCollapsed": 1,
    "ResourceBindings": [],
    "PreservedResources": []
  }
}
{
  "Code": "BindingsSync",
  "Data": {
    "BindingsPath": "/work/my-workflow/bindings_v2.json",
    "ResourceCount": 3,
    "ActivitiesVisited": 12,
    "IntSvcActivities": 4,
    "DuplicatesCollapsed": 1,
    "ResourceBindings": [],
    "PreservedResources": []
  }
}

PreservedResources 列出保持原样的任何现有 bindings_v2.json 条目,因为它们与在此遍历中找到的 IntSvc 活动不对应,例如,仅由 Http 种类的活动引用的资源。

另请参阅​

  • 大纲​
  • uip api 工作流绑定同步​
  • 选项​
  • 示例​
  • 数据形状(--输出 json)​
  • 相关内容​
  • 另请参阅​

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新