UiPath Documentation
uipath-cli
latest
false
UiPath CLI ユーザー ガイド
重要 :
このコンテンツは機械翻訳によって処理されています。 新しいコンテンツの翻訳は、およそ 1 ~ 2 週間で公開されます。

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 .dmn file at the top level of the project. Their codes start with DMN_.
  • RULES_ENTRY_POINTS_STALE when entry-points.json does not match the .dmn files. Run uip rules refresh to 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>

引数​

名前Required目的
<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

データシェイプ(--output 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:

フィールド説明
FileThe file the diagnostic applies to: a .dmn file, or entry-points.json.
CodeThe diagnostic code, for example RULES_ENTRY_POINTS_STALE.
Severityerror または warning。
MessageThe diagnostic message.
InstructionsHow to fix the issue, when available.
TargetThe 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 for the tool overview and project layout.

このページは役に立ちましたか?

接続

ヘルプ リソース サポート(opens in new window)

学習する UiPath アカデミー(opens in new window)

質問する UiPath フォーラム(opens in new window)

最新情報を取得