- 概要
- はじめに
- 概念
- 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 Maestro フローの初期化
「uip maestro flow init」の構文とオプション。最小限のマニフェストとスターターの「.flow」ファイルを使用して新しいフロー プロジェクトを構成します。
uip maestro flow init は、最小限のマニフェストと、単一の手動トリガーノードを含むスターター .flow ファイルを含む新しいFlowプロジェクトディレクトリをスキャフォールディングします。
概要
uip maestro flow init <name> [--force] [--skip-solution-registration] [--automate] [--sdk-source [file]]
uip maestro flow init <name> [--force] [--skip-solution-registration] [--automate] [--sdk-source [file]]
引数
<name>(必須) — プロジェクトのフォルダー名です。使用できる文字は、文字、数字、アンダースコア (_)、ハイフン (-です)。
オプション
--force— ターゲットディレクトリが存在し、空でない場合でも初期化します。既存のファイルはクリア されず 、ファイルは並行して書き込まれます。これは、事前に作成されたフォルダー内で再初期化する場合に便利です。--skip-solution-registration— このプロジェクトを周囲のソリューションに自動登録しないでください (以下の「動作」を参照)。--automate— Maestro Automate プロジェクトを作成します。プロジェクトとそれを操作するコマンドは、標準のフロープロジェクトの場合と同じです。operate.jsonに書き込まれるランタイム プロファイルのみが異なります。--sdk-source [file]— 新しいプロジェクトの builder-SDK ソースも記述します。スターター.flowファイルを<project>/.flow-sdk/<name>.flow.tsまたは[file](現在のディレクトリを基準にした相対位置) に逆コンパイルして、そのフォルダーを作成します。結果は、 をinitした後にuip maestro flow decompile <name>.flow -o <file> --no-pipelineを実行する場合と同じです。@uipath/maestro-builder-sdk6.11.1 以降が必要です。プロジェクトにインストールされているか、グローバルにインストールされている必要があります。[file]既に存在する場合、 を渡さない限り、コマンドは失敗--force。
動作
コマンドは、これらのファイルを に書き込みます<name>/
project.uiproj—{ "Name": "<name>", "ProjectType": "Flow" }operate.json— プロジェクトのランタイム設定 (--automateが選択するランタイム プロファイルを含む)<name>.flow— 以下を含むシードフロー JSON- 生成された
entryPointIdに配線された 1 つのcore.trigger.manual開始ノード definitions[]の一致するノードの定義- 空の
edges、bindings、variables - キャンバス
layout.nodes.start位置
- 生成された
ソリューションの自動登録。--skip-solution-registrationが合格しない限り:
- 現在のディレクトリが既にソリューション内にある場合は、
<name>/がそこに作成され、そのソリューションの.uipxマニフェストにプロジェクトとして登録されます。 - 現在のディレクトリがソリューション内にない場合、
<name>Solutionという名前の親ソリューションが自動的にスキャフォールディングされます — フロー プロジェクトは、概要を文字どおりに読むと示唆されるように、現在のディレクトリの<name>/ではなく、最終的に<name>Solution/<name>/にネストされます。
<name>既に存在し、空ではなく、--forceが設定されていない場合、コマンドは失敗し、ユーザーに--forceを渡すよう求めるエラーが表示されます。
--sdk-sourceでは、コマンドは何かを作成する前に@uipath/maestro-builder-sdkを確認します。プロジェクトを作成しても SDK ソースの書き込みに失敗した場合、エラーは、既存のプロジェクトのソースを書き込む uip maestro flow decompile コマンドに名前を付けます。
例
# Create a new project in ./invoice-flow
uip maestro flow init invoice-flow
# Reinitialize into an existing non-empty folder (e.g. a Git repo)
uip maestro flow init invoice-flow --force
# Create a Maestro Automate project
uip maestro flow init my-automate --automate
# Create a project inside an existing solution and write its builder-SDK source
cd MySolution && uip maestro flow init my-flow --sdk-source
# Create a new project in ./invoice-flow
uip maestro flow init invoice-flow
# Reinitialize into an existing non-empty folder (e.g. a Git repo)
uip maestro flow init invoice-flow --force
# Create a Maestro Automate project
uip maestro flow init my-automate --automate
# Create a project inside an existing solution and write its builder-SDK source
cd MySolution && uip maestro flow init my-flow --sdk-source
データシェイプ(--output json)
{
"Code": "FlowInit",
"Data": {
"Status": "Created successfully",
"Path": "/workspace/my-flow-projectSolution/my-flow-project",
"SolutionRegistration": {
"Status": "Registered",
"Message": "Project registered in parent solution.",
"Solution": "/workspace/my-flow-projectSolution/my-flow-projectSolution.uipx",
"Project": "my-flow-project/project.uiproj",
"ProjectId": "00000000-0000-0000-0000-000000000000",
"Instructions": "The project is listed in the parent solution manifest.
Packing or uploading the solution will sync solution resources automatically."
},
"AutoCreatedSolution": {
"Name": "my-flow-projectSolution",
"Path": "/workspace/my-flow-projectSolution",
"SolutionFile": "/workspace/my-flow-projectSolution/my-flow-projectSolution.uipx"
},
"ProjectArtifacts": { "Created": true },
"NextSteps": "The project is listed in the parent solution manifest.
Packing or uploading the solution will sync solution resources automatically."
}
}
{
"Code": "FlowInit",
"Data": {
"Status": "Created successfully",
"Path": "/workspace/my-flow-projectSolution/my-flow-project",
"SolutionRegistration": {
"Status": "Registered",
"Message": "Project registered in parent solution.",
"Solution": "/workspace/my-flow-projectSolution/my-flow-projectSolution.uipx",
"Project": "my-flow-project/project.uiproj",
"ProjectId": "00000000-0000-0000-0000-000000000000",
"Instructions": "The project is listed in the parent solution manifest.
Packing or uploading the solution will sync solution resources automatically."
},
"AutoCreatedSolution": {
"Name": "my-flow-projectSolution",
"Path": "/workspace/my-flow-projectSolution",
"SolutionFile": "/workspace/my-flow-projectSolution/my-flow-projectSolution.uipx"
},
"ProjectArtifacts": { "Created": true },
"NextSteps": "The project is listed in the parent solution manifest.
Packing or uploading the solution will sync solution resources automatically."
}
}
AutoCreatedSolution は、親ソリューションが自動的にスキャフォールディングされた場合 (つまり、コマンドが既存のソリューション内で実行されなかった) 場合にのみ存在します。SolutionRegistration は常に存在します。 --skip-solution-registrationの場合、その Status は OptedOutになります。SdkSource (記述されたビルダー SDK ソースのパス) は、 --sdk-sourceにのみ存在します。
失敗した場合、 Code は存在せず、応答は Result: "Failure"、 Messageおよび Instructionsを運びます。
参照
uip maestro flow pack— スキャフォールディングされたプロジェクトを梱包するuip maestro flow nodes— スターター.flowファイルにノードを追加しますuip maestro flow registry— 追加するノードタイプを検出します- フローの概要