- 概要
- はじめに
- 概念
- UiPath CLI を使用する
- 使用ガイド
- CI/CD レシピ
- コマンド リファレンス
- 概要
- 終了コード
- グローバル オプション
- uip codedagent
- UIP コーダー
- UIP のコンテキスト グラウンディング
- uip docsai
- uip 関数
- UIP ガードレール
- uip llm - 構成
- uip llm-gateway
- UIP Maestro のオーサリング
- UIP Maestro レジストリ
- uip model-hub
- アクティビティ検索
- アクティビティ get-default-xaml
- 分析
- アナライザー - ルールのリスト
- 開発
- クリーンアップ
- data-fabric-entities をインストールする
- data-fabric-entities リスト
- ファイル差分
- get-library-object-repository
- オブジェクト リポジトリを取得
- Init
- インスタンス リスト
- パッケージ化
- パッケージ検査
- パッケージのインストール
- パッケージ バージョン
- パブリッシュ
- リモート
- 元に戻す
- 実行、デバッグ、実行
- 設定
- Studio での起動
- テンプレートの検索
- test-data add-entity
- test-data add-queue
- test-data add-variation
- TM
- UIA
- 検証
- workflow-examples get
- ワークフロー - 例のリスト
- UIP タスク
- uip traces
- UIP トレースのフィードバック
- 移行
- 参照とサポート
uip api-workflow run
「uip api-workflow run」の構文とオプション - バンドルされたサーバーレス ワークフロー Executor を使用して、API ワークフローの JSON ファイルをローカルで実行します。
uip api-workflow run は、バンドルされているサーバーレス ワークフロー Executor を使用して、API ワークフローの JSON ファイルをローカルで実行します。入力引数は JSON として渡されます。既定では、Executor は uip login セッションから UiPath の資格情報を読み込むため、ワークフローはコネクタやクラウドで保護されたサービスに到達できます。[--no-authを渡す] を選択すると、資格情報の読み込みをスキップしてローカルのみのモードで実行することができます。
概要
uip api-workflow run <file> [options]
uip api-workflow run <file> [options]
<file>— ワークフローの JSON ファイルへのパスです。
オプション
| フラグ | 説明 |
|---|---|
-i, --input-arguments <json> | 引数を JSON 文字列として入力します (例: '{"name": "World"}')。 |
--input-file <name=path> | ローカル ファイルをアップロードし、 ファイル (JobAttachment) の入力 <name>として渡します。複数のファイルに対して繰り返し可能です。サインイン セッションが必要です。 |
--output-dir <dir> | ワークフロー出力内のすべてのファイル (JobAttachment) 参照を <dir>にダウンロードします。ダウンロードされた各参照には、 LocalPathが付与されます。サインイン セッションが必要です。 |
--folder-key <guid> | この実行で作成される添付ファイルの Orchestrator フォルダー キーです ([ファイルから Base64]/[Base64 からファイルへ] アクティビティによってアップロードされた入力と書き込まれたファイル)。 |
--no-auth | Skip credential loading. The workflow runs in a local-only mode with no access to connectors or cloud-backed services. Refer to Local-only mode. |
例
# Run with an inline input object
uip api-workflow run ./workflow.json \
--input-arguments '{"name":"World"}'
# Run without loading credentials (offline / local-only)
uip api-workflow run ./workflow.json --no-auth
# Extract a single output field
uip api-workflow run ./workflow.json \
--input-arguments '{"name":"World"}' \
--output-filter 'greeting'
# Upload a local file as a file (JobAttachment) input, and download any file
# outputs the workflow produces
uip api-workflow run ./workflow.json \
--input-file document=./invoice.pdf \
--output-dir ./out
# Run with an inline input object
uip api-workflow run ./workflow.json \
--input-arguments '{"name":"World"}'
# Run without loading credentials (offline / local-only)
uip api-workflow run ./workflow.json --no-auth
# Extract a single output field
uip api-workflow run ./workflow.json \
--input-arguments '{"name":"World"}' \
--output-filter 'greeting'
# Upload a local file as a file (JobAttachment) input, and download any file
# outputs the workflow produces
uip api-workflow run ./workflow.json \
--input-file document=./invoice.pdf \
--output-dir ./out
Local-only mode
With --no-auth, the command refuses to run when the run needs Orchestrator blob storage:
--input-fileis passed.--output-diris passed.- The workflow uses the File to Base64 or Base64 to File activities.
Each refusal returns Result: "Failure" with Instructions to run uip login and drop --no-auth.
データシェイプ(--output json)
Data is the workflow's own output, with field names kept exactly as the workflow produces them:
{
"Code": "WorkflowRun",
"Data": {
"greeting": "Hello, World!"
}
}
{
"Code": "WorkflowRun",
"Data": {
"greeting": "Hello, World!"
}
}
A workflow that produces no output returns Data: { "Message": "(no output)" }.
When --output-dir is set, each file (JobAttachment) reference in the output is downloaded and gains a LocalPath:
{
"Code": "WorkflowRun",
"Data": {
"encoded": {
"ID": "6f1c0d2e-8a1b-4c3d-9e0f-123456789abc",
"FullName": "invoice.base64",
"MimeType": "text/plain",
"LocalPath": "/abs/path/out/invoice.base64"
}
}
}
{
"Code": "WorkflowRun",
"Data": {
"encoded": {
"ID": "6f1c0d2e-8a1b-4c3d-9e0f-123456789abc",
"FullName": "invoice.base64",
"MimeType": "text/plain",
"LocalPath": "/abs/path/out/invoice.base64"
}
}
}
Without --output-dir, the reference is returned without a local file.
A failed run exits non-zero per the standard exit codes and returns Result: "Failure" with the cause in Message and the next step in Instructions. When the workflow completed but its output files could not be downloaded, the failure also carries the workflow output in Data, so the attachment IDs are kept.
関連
- uip api-workflow build — プロジェクトを実行する前にコンパイルします。
- uip api-workflow pack — 検証済みのワークフローをパッケージ化してパブリッシュします。
参照
- API ワークフロー ツールの概要
- グローバル オプション
- 終了コード
uip login—--no-authが設定されていない限り、runによって読み込まれた資格情報。