UiPath Documentation
uipath-cli
latest
false
Guide de l'utilisateur de UiPath CLI
Important :
Ce contenu a été traduit à l'aide d'une traduction automatique. La localisation du contenu nouvellement publié peut prendre 1 à 2 semaines avant d’être disponible.

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.

Synthèse​

uip rules validate <project-path>
uip rules validate <project-path>

Arguments​

NomRequisObjectif
<project-path>ouiPath to the Business Rules project directory. The directory must contain project.uiproj.

Exemple​

uip rules validate ./LoanEligibilitySolution/LoanEligibility
uip rules validate ./LoanEligibilitySolution/LoanEligibility

Format des données (--sortie 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:

ChampDescription
FileThe file the diagnostic applies to: a .dmn file, or entry-points.json.
CodeThe diagnostic code, for example RULES_ENTRY_POINTS_STALE.
Severityerror ou warning.
MessageThe diagnostic message.
InstructionsHow to fix the issue, when available.
TargetThe element of the document the diagnostic points to.

Codes de sortie​

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").

Voir également​

  • uip rules for the tool overview and project layout.

Cette page vous a-t-elle été utile ?

Connecter

Besoin d'aide ? Assistance(opens in new window)

Vous souhaitez apprendre ? UiPath Academy(opens in new window)

Vous avez des questions ? UiPath Forum(opens in new window)

Rester à jour