- 概述
- 开始使用
- 概念
- 使用 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 追踪反馈
- 迁移
- 参考与支持
uip rules validate
Syntax and options for `uip rules validate`, which checks a Business Rules project for the errors Studio Web blocks publish and debug on.
uip rules validate checks a Business Rules project for what Studio Web blocks publish and debug on. It reports two kinds of diagnostics:
- The Studio Web designer's diagnostics for each
.dmnfile at the top level of the project. Their codes start withDMN_. RULES_ENTRY_POINTS_STALEwhenentry-points.jsondoes not match the.dmnfiles. Runuip rules refreshto fix it.
Diagnostics with severity error fail the command. Diagnostics with severity warning are reported only. The command does not write any file.
大纲
uip rules validate <project-path>
uip rules validate <project-path>
参数
| 名称 | 必填 | 用途 |
|---|---|---|
<project-path> | 是 | Path to the Business Rules project directory. The directory must contain project.uiproj. |
示例
uip rules validate ./LoanEligibilitySolution/LoanEligibility
uip rules validate ./LoanEligibilitySolution/LoanEligibility
数据形状(--输出 json)
{
"Code": "RulesValidate",
"Data": {
"Status": "Valid",
"ProjectPath": "/workspace/LoanEligibilitySolution/LoanEligibility",
"DmnFiles": ["Business rule.dmn"],
"Diagnostics": []
}
}
{
"Code": "RulesValidate",
"Data": {
"Status": "Valid",
"ProjectPath": "/workspace/LoanEligibilitySolution/LoanEligibility",
"DmnFiles": ["Business rule.dmn"],
"Diagnostics": []
}
}
When the project has at least one error, the command returns a failure envelope with Code: "RulesValidate", ErrorCode: "invalid_argument", and Data.Status: "Invalid". Instructions lists each diagnostic on its own line.
Each entry in Diagnostics has these fields:
| 字段 | 描述 |
|---|---|
File | The file the diagnostic applies to: a .dmn file, or entry-points.json. |
Code | The diagnostic code, for example RULES_ENTRY_POINTS_STALE. |
Severity | error 或 warning。 |
Message | The diagnostic message. |
Instructions | How to fix the issue, when available. |
Target | The element of the document the diagnostic points to. |
退出代码
Refer to Exit codes for the shared contract. The command exits 1 when any diagnostic has severity error, or when the project has no .dmn file at its top level (ErrorCode: "not_found").
相关命令
uip rules refreshfixesRULES_ENTRY_POINTS_STALE.uip rules debugevaluates the rule with sample inputs.
另请参阅
uip rulesfor the tool overview and project layout.