uipath-cli
latest
false
UiPath CLI 用户指南
- 概述
- 开始使用
- 概念
- 使用 UiPath CLI
- 操作指南
- CI/CD 方法
- 命令参考
- 概述
- 退出代码
- 全局选项
- UIP 编码智能体
- UIP 编码器
- uip 上下文基础
- UIP 文档
- uip 函数
- UIP 防护机制
- uip llm 配置
- uip llm 网关
- uip maestro authoring
- uip maestro registry
- uip 模型中心
- activities find
- activities get-default-xaml
- 分析
- analyzer-rules list
- 构建
- 清理
- data-fabric-entities install
- data-fabric-entities list
- files diff
- 获取库对象存储库
- 获取对象存储库
- 初始化
- instances list
- 打包
- packages inspect
- packages install
- packages versions
- 发布
- 远程
- restore
- 运行、调试和调试执行
- 设置
- studio start
- templates search
- test-data add-entity
- test-data add-queue
- test-data add-variation
- TM
- UIA
- 验证
- workflow-examples get
- workflow-examples list
- UIP 任务
- UIP 追踪
- UIP 追踪反馈
- 迁移
- 参考与支持
重要 :
请注意,此内容已使用机器翻译进行了本地化。
新发布内容的本地化可能需要 1-2 周的时间才能完成。
uip rules init
Syntax and options for `uip rules init`, which creates a Business Rules project seeded with one decision table and registers it in a solution.
uip rules init creates a Business Rules project seeded with one decision table. The project holds project.uiproj, Business rule.dmn, entry-points.json, and bindings_v2.json.
Where the project lands depends on the current directory:
- Inside an existing solution, the project is created at
./<name>and added to that solution's.uipxmanifest. - Outside a solution, a parent solution named
<name>Solutionis created, and the project is created inside it at./<name>Solution/<name>. - With
--skip-solution-registration, the project is created at./<name>and is not registered in any solution.
大纲
uip rules init <name> [--force] [--skip-solution-registration]
uip rules init <name> [--force] [--skip-solution-registration]
参数
| 名称 | 必填 | 用途 |
|---|---|---|
<name> | 是 | Business Rules project name. Letters, numbers, underscores (_), and hyphens (-) only. |
选项
| 长 | 值 | 默认 | 描述 |
|---|---|---|---|
--force | 标记 | 关闭 | Initialize the project even if the target directory exists and is not empty. When the directory already holds a .dmn file, the existing rule files are left as they are and RuleStatus is Preserved. |
--skip-solution-registration | 标记 | 关闭 | Do not register the project in the surrounding solution, and do not create a parent solution. SolutionRegistration.Status is OptedOut. |
示例
# Create a project; outside a solution, a parent my-rules-projectSolution is created
uip rules init my-rules-project
# Create a project; outside a solution, a parent my-rules-projectSolution is created
uip rules init my-rules-project
数据形状(--输出 json)
{
"Code": "RulesInit",
"Data": {
"Status": "Created successfully",
"Path": "/workspace/my-rules-projectSolution/my-rules-project",
"RuleStatus": "Created",
"SolutionRegistration": {
"Status": "Registered",
"Message": "Project registered in parent solution.",
"Solution": "/workspace/my-rules-projectSolution/my-rules-projectSolution.uipx",
"Project": "my-rules-project/project.uiproj",
"ProjectId": "00000000-0000-0000-0000-000000000000",
"Instructions": "The project is listed in the parent solution manifest.\nPacking or uploading the solution will sync solution resources automatically."
},
"AutoCreatedSolution": {
"Name": "my-rules-projectSolution",
"Path": "/workspace/my-rules-projectSolution",
"SolutionFile": "/workspace/my-rules-projectSolution/my-rules-projectSolution.uipx"
},
"ProjectArtifacts": { "Created": true },
"NextSteps": "The project is listed in the parent solution manifest.\nPacking or uploading the solution will sync solution resources automatically."
}
}
{
"Code": "RulesInit",
"Data": {
"Status": "Created successfully",
"Path": "/workspace/my-rules-projectSolution/my-rules-project",
"RuleStatus": "Created",
"SolutionRegistration": {
"Status": "Registered",
"Message": "Project registered in parent solution.",
"Solution": "/workspace/my-rules-projectSolution/my-rules-projectSolution.uipx",
"Project": "my-rules-project/project.uiproj",
"ProjectId": "00000000-0000-0000-0000-000000000000",
"Instructions": "The project is listed in the parent solution manifest.\nPacking or uploading the solution will sync solution resources automatically."
},
"AutoCreatedSolution": {
"Name": "my-rules-projectSolution",
"Path": "/workspace/my-rules-projectSolution",
"SolutionFile": "/workspace/my-rules-projectSolution/my-rules-projectSolution.uipx"
},
"ProjectArtifacts": { "Created": true },
"NextSteps": "The project is listed in the parent solution manifest.\nPacking or uploading the solution will sync solution resources automatically."
}
}
| 字段 | 描述 |
|---|---|
RuleStatus | Created when the seeded decision table was written. Preserved when the project already held a .dmn file. |
SolutionRegistration.Status | One of Registered, AlreadyRegistered, Skipped, Failed, NotInSolution, or OptedOut. |
AutoCreatedSolution | Present only when init created the parent solution. |
ProjectArtifacts | Present only when the project was registered in a solution. |
NextSteps | Present only when the registration returned instructions. |
退出代码
Refer to Exit codes for the shared contract. The command exits 1 when the name contains characters other than letters, numbers, underscores, and hyphens, or when the target directory exists and is not empty and --force is not passed.
相关命令
uip rules refreshregenerates the entry points after you edit the.dmnfile.uip rules validatechecks the project.uip solutionpacks, publishes, and deploys the solution that holds the project.
另请参阅
uip rulesfor the tool overview and project layout.