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

UIP Maestro フローの検証

「uip maestro flow validate」の構文とオプション - .flow」ファイルをスキーマおよび任意のガバナンス ポリシーに照らして検証します。

uip maestro flow validate は、構造的なクロスフィールド チェックを使用して、フロー スキーマに対して .flow ファイルを検証します。さらに、任意の --governance パスを使用することで、組織のガバナンス ポリシーに照らしてエージェント ノードを検証します。

概要​

uip maestro flow validate [flowFile] [--governance] [--strict-bindings] [--strict-expressions] [--force]
uip maestro flow validate [flowFile] [--governance] [--strict-bindings] [--strict-expressions] [--force]

グローバルオプションを優先します。終了コードは 標準コントラクトに従います。

引数​

  • [flowFile] (optional) — path to the .flow file, or a project directory containing one. Default: the current directory. For a directory, the command validates the same .flow file that uip maestro flow debug runs: the MainFile from project.uiproj, then <Name>.flow, then the first .flow file in the project root, content/, or flow_files/. The command fails when the directory has no .flow file.

オプション​

  • --governance — 組織のガバナンス ポリシーに照らしてエージェント ノードを検証します。uip loginが必要です。CLI は、チェックを実行する前に、プラットフォームからenforcementsと許可されたmodelNamesをフェッチします。フェッチに失敗した場合、コマンドはエラーになります。ポリシーチェックをスキップするには --governance 省略します。
  • --strict-bindings — fail validation when a Managed HTTP node (core.action.http.v2) carries a connector-shaped label but no Integration Service binding, or when the connectionId of a connector node or a ConnectionId binding row is not a GUID. Default: warn only — omitting this flag still runs the check, it just doesn't fail the build.
  • --strict-expressions — キャンバスで使用する式チェッカーと同じ式チェッカーに従って、式またはスクリプトの本文に型エラーがある場合、検証に失敗します。既定: warn のみ。この CI ゲート チェックは常に実行されます。フラグは、検出結果が致命的であるかどうかのみを制御します。
  • --force — キャッシュされたコピーを読み取るのではなく、古いハンドル チェックが使用する現在のノード マニフェストを再取得します。キャッシュは書き込み uip maestro flow registry pull キャッシュで、テナントごとに 30 分間保持されます。 registry pull --force と同様に、再取得されたマニフェストによってキャッシュが置き換えられます。

動作​

  • スキーマの検証はローカルで実行され、ログインは必要ありません。
  • 構造チェックにより、ノード、エッジ、バインド、変数、および定義間の参照が一貫していることが確認されます。
  • 古いハンドル チェックでは、 .flow ファイルに埋め込まれた定義に加えて、各エッジ ハンドルを現在のノード マニフェストと比較します。Studio Web は現在のマニフェストに対してレンダリングされるため、古い定義から構築されたフローは、埋め込みチェックに合格しても、欠落したエッジでレンダリングできます。現在のマニフェストを読み込めない場合、チェックはスキップされ、警告が表示されます。
  • [With --governanceでは、その構成 (モデル、ツール、ポリシー) が、フェッチされた適用と競合するエージェント ノードにフラグが付けられます。
  • .flowファイルの複数のスコープ (ルートまたは任意のサブフロー)、またはノードとエッジの両方で使用される ID は、エラーです。このエラーには、ID を使用する各種類とスコープに名前を付けます。
  • ソリューションのエンティティに名前を付けているもののエンティティのバインドを持たない Data Fabric ノードは、 で失敗 INLINE_ENTITY_UNBOUND。同じチェックによって、 uip maestro flow pack、 uip maestro flow debug、および評価の実行が停止されます。ノードで uip maestro flow nodes configureを実行して、バインドを書き込みます。
  • ソリューション内のプロセス リソースと一致しないソリューション内のプロセス キーを呼び出すノードはエラーです。
  • A Script node body that is not valid JavaScript is an error, with or without --strict-bindings. The same check stops uip maestro flow pack.
  • A root trigger whose inputs.entryPointId is set and is not a GUID is an error, because the packed entry point needs a GUID.
  • A node ID that is also the ID of an in or inout variable of the same graph is an error. An out variable can share its ID with a node.
  • A binding ID that is not an identifier, such as invoice-proc, fails with BINDING_ID_NOT_IDENTIFIER. A reference to it resolves to null at runtime with no error.
  • previewで始まるノードとエッジのIDはエラーです:フローをパックするコンバーターは、それらのノードとエッジを除外するため、uip maestro flow packとuip maestro flow debugは失敗します。ノードまたはエッジの名前を変更し、そのエッジと $vars 参照を更新します。付箋は免除されます。

Extract document nodes​

These checks apply to Extract document nodes (uipath.ixp.extract-document-builder):

Finding重要度
The node names no processor. The message gives the uip maestro flow nodes provision command that fixes it.Error
Two nodes define the same processor (inputs.processorKey) and neither is marked inputs.processorReadOnly.Error, one for each node
The extraction schema in inputs.schemaDocument has a fault, for example a field that references a field type that does not exist.Error
inputs.schemaDocument is a bare JSON Schema, or its entries have no stable IDs. The message points to uip maestro flow nodes schema set.Warning

Warning​

These findings are warnings and do not fail the command:

Finding備考
CONNECTION_ID_NOT_GUIDThe connectionId of a connector node, or the resourceKey or default of a ConnectionId binding row, is not a GUID. This includes an unfilled <...> placeholder. An error with --strict-bindings.
VARS_REFS_IN_DOUBLE_QUOTESEvery $vars reference of an End node output or of a variable update is between double quotes. The value evaluates to null at runtime with no error.
UNRESOLVED_BINDINGA binding placeholder has no binding row. The message names the command that writes the rows again. An error with --strict-bindings.
Variable type not recognizedAn in or out variable in the root of the flow has a type that Flow does not recognize, such as date. It is packaged as a plain string.
Quick Form binding to a node on some pathsA Quick Form field binds the output of a node that runs on only some of the paths that reach the form.
共有コネクションNodes of different connectors use the same connection.
Ignored parentIdThe parentId of a node names a node that is not a loop, a do-while, or an error handler.
Shared agent sourceTwo agent nodes have the same inputs.source.
# Validate the project in the current directory
uip maestro flow validate

# Structural validation only (no login required)
uip maestro flow validate invoice-flow.flow

# Full validation including governance policy for agent nodes
uip maestro flow validate invoice-flow.flow --governance

# Validate the project's main .flow file
uip maestro flow validate ./my-flow-project

# Fail on expression and script type errors (warnings by default)
uip maestro flow validate invoice-flow.flow --strict-expressions

# Validate against freshly fetched node manifests, bypassing the 30-minute cache
uip maestro flow validate invoice-flow.flow --force
# Validate the project in the current directory
uip maestro flow validate

# Structural validation only (no login required)
uip maestro flow validate invoice-flow.flow

# Full validation including governance policy for agent nodes
uip maestro flow validate invoice-flow.flow --governance

# Validate the project's main .flow file
uip maestro flow validate ./my-flow-project

# Fail on expression and script type errors (warnings by default)
uip maestro flow validate invoice-flow.flow --strict-expressions

# Validate against freshly fetched node manifests, bypassing the 30-minute cache
uip maestro flow validate invoice-flow.flow --force

データシェイプ(--output json)​

成功について:

{
  "Code": "FlowValidate",
  "Data": {
    "File": "invoice-flow.flow",
    "Status": "Valid"
  }
}
{
  "Code": "FlowValidate",
  "Data": {
    "File": "invoice-flow.flow",
    "Status": "Valid"
  }
}

ファイルが有効で警告がある場合、 Data には Warningsも含まれます。警告カウントの文字列と、その後に警告ごとに 1 行 - [<path>] <message> 続きます。

検証に失敗すると、コマンドはコード 1 で終了し、 Failure 結果を返します。Message は Validation failed for <file>で、 Instructions はエラー数と、その後に問題ごとに 1 行の - [<severity>] [<path>] <message> 行を保持します。

参照​

  • 概要​
  • 引数​
  • オプション​
  • 動作​
  • Extract document nodes​
  • Warning​
  • 例​
  • データシェイプ(--output json)​
  • 参照​

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

接続

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

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

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

最新情報を取得