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

UIP Maestro フロー ノードと UIP Maestro フロー エッジ

「uip maestro flow nodes」および「uip maestro flow edges」の構文とオプション。.flow」ファイル内のノードとエッジを作成、設定、表示、削除します。

フローはグラフです。ノード は頂点 (トリガー、アクティビティ、コネクタ、エージェント) です。 エッジ は、それらの間の有向接続です。uip maestro flow nodes コマンドと uip maestro flow edges コマンドは、.flowファイルをその場で編集し、追加、設定、リスト表示、削除を行います。

このページでは、.flow ファイルを同じ方法で編集する 2 つのコンパニオン コマンド グループ、 variables と bindingsについても説明します。

概要​

uip maestro flow nodes create    <file> <node-type> [-i <json>] [--position <x,y>] [--label <label>] [--source <uuid>] [--parent <node-id>] [--metadata <file> --scripts <dir>]
uip maestro flow nodes configure <file> <node-id> --detail <json>
uip maestro flow nodes list      <file> [--limit <n>] [--offset <n>]
uip maestro flow nodes delete    <file> <node-id>

uip maestro flow edges create <file> <source-id> <target-id> [--source-port <port>] [--target-port <port>]
uip maestro flow edges list   <file> [--limit <n>] [--offset <n>]
uip maestro flow edges delete <file> <edge-id>
uip maestro flow nodes create    <file> <node-type> [-i <json>] [--position <x,y>] [--label <label>] [--source <uuid>] [--parent <node-id>] [--metadata <file> --scripts <dir>]
uip maestro flow nodes configure <file> <node-id> --detail <json>
uip maestro flow nodes list      <file> [--limit <n>] [--offset <n>]
uip maestro flow nodes delete    <file> <node-id>

uip maestro flow edges create <file> <source-id> <target-id> [--source-port <port>] [--target-port <port>]
uip maestro flow edges list   <file> [--limit <n>] [--offset <n>]
uip maestro flow edges delete <file> <edge-id>

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

node、edge、variable、および binding の単数形グループ名は、nodes、 edges、 variables、および bindingsのエイリアスです。add は 4 つのグループすべてで create のエイリアスであり、remove は variables と bindingsで delete のエイリアスです。


UIP Maestro フロー ノードは、以下を作成します。​

.flowファイル内にノードを作成します。ノードの種類がレジストリに存在している必要があります。有効な<node-type>値を検出するには、uip maestro flow registry searchを使用します。

引数​

  • <file> (必須) — .flow ファイルのパスです。
  • <node-type> (必須) — ノードタイプ識別子 (例:core.trigger.manual、 uipath.connector.slack.send-message)。

オプション​

オプション説明
-i, --input <json>ノードに設定する入力値の JSON オブジェクト (例:'{"script":"…"}')。配列やスカラーではなく、JSON オブジェクトである必要があります。コネクタ ノード (タイプ uipath.connector.*) の場合は、ここで--input渡さず、後でnodes configureを実行してください。
--position <x,y>キャンバスの位置 (例:250,150。x と y はどちらも必須の数値です。
--label <label>ノードの表示ラベルです。
--source <uuid>ソース依存関係を定義で宣言するノード・タイプのソースUUID ( inputs.sourceに設定されます)。インラインのエージェント ノードの場合は、エージェントの ProjectIdを渡します。エージェント リソース ノードの場合は、親インライン エージェントの resources[]からリソース id を渡します。
--parent <node-id>このノードを含む必要がある既存のノードの ID — エッジだけでは包含を推測できないループ本体を作成するときに設定されます (通常は core.logic.loop ノードの ID)。
--metadata <file>カタログ以外のアクティビティのみ。uip is activities metadata generateによって生成されるアクティビティ メタデータ ファイル ( <Name>.json) です。ノード定義はレジストリではなくこのファイルから構築され、 <node-type> uipath.connector.custom.<connector-key>.<slug>する必要があります。--scriptsが必要です。
--scripts <dir>カタログ以外のアクティビティのみ。アクションと、すべてのメタデータ参照の <scriptRef>.js を保持するディレクトリ。スクリプト ソースがノードに埋め込まれている。--metadataが必要です。
uip maestro flow nodes create invoice-flow.flow uipath.connector.slack.send-message --label "Notify team"
uip maestro flow nodes create invoice-flow.flow uipath.connector.slack.send-message --label "Notify team"

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

{
  "Code": "NodeAddSuccess",
  "Data": {
    "Node": { "id": "node_a1b2c3d4", "type": "uipath.connector.slack.send-message" },
    "DefinitionAdded": true,
    "BindingsCreated": 0,
    "VariableCount": 0
  }
}
{
  "Code": "NodeAddSuccess",
  "Data": {
    "Node": { "id": "node_a1b2c3d4", "type": "uipath.connector.slack.send-message" },
    "DefinitionAdded": true,
    "BindingsCreated": 0,
    "VariableCount": 0
  }
}

DefinitionAddedは、特定のnode-typeの最初の挿入時にtrueされ、.flow definitions[]配列内の対応するエントリが作成されます。

--metadata と --scripts のいずれか 1 つだけを渡すと、コマンドは失敗します。


UIP Maestro フロー ノード 構成​

すでに追加済みのノードに inputs.detail を設定し、必要なワークフローのバインドを作成します。コネクタ ノード、マネージド HTTP、およびファイル ノード (core.action.file.read、 core.action.file.create) nodes createした後に、この操作を実行します。ファイル ノードの Orchestrator 接続は によってのみバインドされますnodes configurenodes create --input で渡されたconnectionIdはバインドされません。

引数​

  • <file> (必須) — .flow ファイルのパスです。
  • <node-id> (必須) — 設定するノードの ID です ( nodes listで検索します)。

オプション​

  • --detail <json> (必須) — 構成 JSON。形状はノードタイプによって異なります。

コネクタ ノード (uipath.connector.*)​

registry get出力のconnectorMethodInfoからmethodとendpointを取得します。

  • 必須: connectionId、 folderKey、 method、 endpoint
  • 一般的なアクティビティ (*.insert-record や *.list-recordsなどのマニフェスト activityType Genericの場合に必要objectName。uip is resources listとuip is resources describeを持つオブジェクトを検出します。
  • 任意: bodyParameters、 queryParameters、 pathParameters、 filter、 customFieldsRequestDetails

別のノードの出力を読み取る値では、=js:式内で $vars. プレフィックスを使用する必要があります (例: "=js:$vars.createEntityRecord1.output.Id")。ベア フォーム ("=js:createEntityRecord1.output.Id") は、実行時に undefined に解決されます。

uip maestro flow nodes configure invoice-flow.flow node_a1b2c3d4 --detail '{
  "connectionId": "b2c3d4e5-0000-0000-0000-000000000001",
  "folderKey":    "c3d4e5f6-0000-0000-0000-000000000001",
  "method":       "POST",
  "endpoint":     "/issues",
  "bodyParameters": { "summary": "Bug" }
}'
uip maestro flow nodes configure invoice-flow.flow node_a1b2c3d4 --detail '{
  "connectionId": "b2c3d4e5-0000-0000-0000-000000000001",
  "folderKey":    "c3d4e5f6-0000-0000-0000-000000000001",
  "method":       "POST",
  "endpoint":     "/issues",
  "bodyParameters": { "summary": "Bug" }
}'

コネクタ トリガーと待機イベント (uipath.connector.trigger.、uipath.connector.event.)​

コネクタ トリガーがフローを開始します。Wait-for Event ノードは、イベントが発生するまでフローを一時停止します。どちらも同じディテール形状をとります。

  • 必須: connectionId、 folderKey、 eventMode (例: polling 、 webhooks)
  • 一般的なトリガーとイベント (Data Fabric *.record-createdなどのマニフェスト activityType GenericTriggerに必要です。 objectName、サブスクライブするオブジェクトです
  • 任意: eventParameters、 queryParameters、 pathParameters、 filter (生の式ではない、構造化されたフィルター ツリー)

uip is triggers describe <connector-key> <eventType> <object> --connection-id <uuid>でeventModeを発見する

uip maestro flow nodes configure invoice-flow.flow node_trigger1 --detail '{"connectionId":"…","folderKey":"…","eventMode":"polling"}'
uip maestro flow nodes configure invoice-flow.flow node_trigger1 --detail '{"connectionId":"…","folderKey":"…","eventMode":"polling"}'

ファイル ノード (core.action.file.read、core.action.file.create)​

ノードがジョブの添付ファイルにアクセスするために使用する Orchestrator 接続をバインドします。

  • 必須: connectionId ( uipath-uipath-orchestrator 接続 UUID)
  • 任意: folderKey (既定ではコネクションのフォルダー)
uip maestro flow nodes configure invoice-flow.flow node_file1 --detail '{"connectionId":"…"}'
uip maestro flow nodes configure invoice-flow.flow node_file1 --detail '{"connectionId":"…"}'

マネージド HTTP ノード (core.action.http.v2)​

次の 2 つの認証モード:

コネクタ モード (authentication: "connector") — 認証に Integration Service のコネクションを使用します。

  • 必須: authentication、 method、 connectionId、 folderKey、 targetConnector
  • method ∈ GET、 POST、 PUT、 PATCH、 DELETE、 OPTIONS、 HEAD
  • 任意: [ url (コネクタのベース URL に追加されるパス)、 headers、 query、 body
uip maestro flow nodes configure invoice-flow.flow node_abc --detail '{
  "authentication":  "connector",
  "targetConnector": "uipath-microsoft-outlook365",
  "connectionId":    "…",
  "folderKey":       "…",
  "method":          "GET",
  "url":             "/me"
}'
uip maestro flow nodes configure invoice-flow.flow node_abc --detail '{
  "authentication":  "connector",
  "targetConnector": "uipath-microsoft-outlook365",
  "connectionId":    "…",
  "folderKey":       "…",
  "method":          "GET",
  "url":             "/me"
}'

手動モード (authentication: "manual") — コネクタ認証なし、完全な URL と認証ヘッダーを自身で指定します。

  • 必須: authentication、 method、 url (完全な URL)
  • 任意: headers、 query、 body (文字列。式 (例:=js:({…}))
uip maestro flow nodes configure invoice-flow.flow node_abc --detail '{
  "authentication": "manual",
  "method":         "GET",
  "url":            "https://api.example.com/data",
  "headers":        { "Authorization": "Bearer <token>" }
}'
uip maestro flow nodes configure invoice-flow.flow node_abc --detail '{
  "authentication": "manual",
  "method":         "GET",
  "url":            "https://api.example.com/data",
  "headers":        { "Authorization": "Bearer <token>" }
}'

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

{
  "Code": "NodeConfigureSuccess",
  "Data": {
    "NodeId": "node_a1b2c3d4",
    "BindingsCreated": 2,
    "DetailPopulated": true
  }
}
{
  "Code": "NodeConfigureSuccess",
  "Data": {
    "NodeId": "node_a1b2c3d4",
    "BindingsCreated": 2,
    "DetailPopulated": true
  }
}

UIP Maestro フロー ノードのリスト​

.flowファイル内のすべてのノードのリストを取得します。

引数​

  • <file> (必須) — .flow ファイルのパスです。

オプション​

オプション説明
-l, --limit <number>返される行数 (1 から 10000)
--offset <number>スキップする行数 (0 から 1000000)既定 0です。

--limitまたは --offsetを指定しないと、すべての行が戻されます。どちらの場合も、返される行数 Count 、応答には次の Pagination オブジェクトが運ばれます。

  • Returned
  • Limit
  • Offset
  • Total
  • HasMore

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

{
  "Code": "NodeListSuccess",
  "Data": {
    "Nodes": [
      { "id": "start",          "type": "core.trigger.manual" },
      { "id": "node_a1b2c3d4",  "type": "core.action.http.v2" }
    ],
    "Count": 2
  }
}
{
  "Code": "NodeListSuccess",
  "Data": {
    "Nodes": [
      { "id": "start",          "type": "core.trigger.manual" },
      { "id": "node_a1b2c3d4",  "type": "core.action.http.v2" }
    ],
    "Count": 2
  }
}

各エントリには、少なくとも id と typeが含まれます。また、 .flow definitions[] 配列から表示メタデータもアタッチします。


UIP Maestro フロー ノードの削除​

ノードとノードが所有するすべてのものを削除します。nodes list を使用してノード ID を見つけます。削除:

  • 接続されたエッジ
  • 孤立した装丁
  • 孤立した定義
  • 削除されたノードが所有するノード変数
  • 削除されたノードが所有する変数の更新

引数​

  • <file> (必須) — .flow ファイルのパスです。
  • <node-id> (必須) — 削除するノードの ID。

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

{
  "Code": "NodeDeleteSuccess",
  "Data": {
    "DeletedNode":           { "id": "node_a1b2c3d4", "type": "core.action.http.v2" },
    "EdgesRemoved":          1,
    "BindingsRemoved":       0,
    "DefinitionsRemoved":    0,
    "VariablesRemoved":      0,
    "VariableUpdatesRemoved": 0
  }
}
{
  "Code": "NodeDeleteSuccess",
  "Data": {
    "DeletedNode":           { "id": "node_a1b2c3d4", "type": "core.action.http.v2" },
    "EdgesRemoved":          1,
    "BindingsRemoved":       0,
    "DefinitionsRemoved":    0,
    "VariablesRemoved":      0,
    "VariableUpdatesRemoved": 0
  }
}

UIP Maestro フローのエッジによって作成される​

2 つのノード間にエッジを作成します。

引数​

  • <file> (必須) — .flow ファイルのパスです。
  • <source-id> (必須) — ソース ノードの ID。
  • <target-id> (必須) — ターゲット ノードの ID。

オプション​

  • --source-port <port> — 送信元ポート名。既定では、ノードの定義がデフォルトとしてマークするポートを使用し、それ以外の場合はノードの唯一のフロー ポート outputします。複数のフロー ポートがあり、既定値 (判断など) がないノードには、 --source-port が必要です (例: --source-port true)。
  • --target-port <port> — ターゲット ポート名です。既定では、ノードの定義がデフォルトとしてマークするポートを使用し、それ以外の場合はノードの唯一のフロー ポート inputします。

同じ引数でコマンドをもう一度実行すると、 Code: "EdgeAlreadyExists" で既存のエッジが返され、stderr に警告が書き込まれます。

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

{
  "Code": "EdgeAddSuccess",
  "Data": {
    "Edge": {
      "id":         "edge_a1b2c3d4",
      "source":     "Node_1",
      "target":     "Node_2",
      "sourcePort": "output",
      "targetPort": "input"
    }
  }
}
{
  "Code": "EdgeAddSuccess",
  "Data": {
    "Edge": {
      "id":         "edge_a1b2c3d4",
      "source":     "Node_1",
      "target":     "Node_2",
      "sourcePort": "output",
      "targetPort": "input"
    }
  }
}

UIP Maestro フロー エッジのリスト​

.flow ファイル内のすべてのエッジのリストを取得します。

uip maestro flow edges list <file> [--limit <n>] [--offset <n>]
uip maestro flow edges list <file> [--limit <n>] [--offset <n>]

オプション​

オプション説明
-l, --limit <number>返される行数 (1 から 10000)
--offset <number>スキップする行数 (0 から 1000000)既定 0です。

--limitまたは --offsetを指定しないと、すべての行が戻されます。どちらの場合も、返される行数 Count 、応答には次の Pagination オブジェクトが運ばれます。

  • Returned
  • Limit
  • Offset
  • Total
  • HasMore
{
  "Code": "EdgeListSuccess",
  "Data": {
    "Edges": [
      { "id": "edge_a1b2c3d4", "source": "Node_1", "target": "Node_2" }
    ],
    "Count": 1
  }
}
{
  "Code": "EdgeListSuccess",
  "Data": {
    "Edges": [
      { "id": "edge_a1b2c3d4", "source": "Node_1", "target": "Node_2" }
    ],
    "Count": 1
  }
}

UIP Maestro フローのエッジの削除​

1 つのエッジを ID で削除します。edges list を使用して ID を見つけます。

引数​

  • <file> (必須) — .flow ファイルのパスです。
  • <edge-id> (必須) — 削除するエッジの ID です。

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

{
  "Code": "EdgeDeleteSuccess",
  "Data": {
    "DeletedEdge": { "id": "edge_a1b2c3d4", "source": "Node_1", "target": "Node_2" }
  }
}
{
  "Code": "EdgeDeleteSuccess",
  "Data": {
    "DeletedEdge": { "id": "edge_a1b2c3d4", "source": "Node_1", "target": "Node_2" }
  }
}

変数​

variables グループは、.flow ファイルのvariables サブツリーを編集します。

UIP Maestro のフロー変数​

uip maestro flow variables create <file> <variable-id> -d, --direction <direction> [-t, --type <type>] [--default-value <val>] [--description <text>] [--schema <json>] [--sub-type <type>] [--trigger-node-id <nodeId>]
uip maestro flow variables list   <file> [--limit <n>] [--offset <n>]
uip maestro flow variables delete <file> <variable-id>
uip maestro flow variables create <file> <variable-id> -d, --direction <direction> [-t, --type <type>] [--default-value <val>] [--description <text>] [--schema <json>] [--sub-type <type>] [--trigger-node-id <nodeId>]
uip maestro flow variables list   <file> [--limit <n>] [--offset <n>]
uip maestro flow variables delete <file> <variable-id>
  • direction ∈ in、 out、 inout (必須)。
  • type ∈ string、 number、 boolean、 object、 array、 file (既定値は stringです)。
  • --default-value は --type ごとに解析されます — object/array 値は、一致するシェイプの有効なJSONである必要があります。
  • --schema JSON オブジェクト (例:'{"type":"string"}')。
  • --trigger-node-id <nodeId> — 入力 変数が属するトリガー ノード。既定では、フローの唯一のトリガー ノードです。フローに複数のエントリ ポイントがある場合に必要です。

list では、nodes list と同様に --limit と --offsetが必要です。

データ図形: createの場合は VariableAddSuccess (Data.Variable)、deleteの場合は VariableListSuccess (Data.Variables[]、 Count)、VariableRemoveSuccess (Data.DeletedVariable)。


Bindings​

バインディングは、パブリッシュ/デプロイ時にフローが必要とする外部リソース(ターゲットプロセス、エージェント、接続、キューなど)と、それらが接続するノードプロパティを宣言します。

uip maestro flow bindings create <file> <name> <resource> <default-value> [--resource-key <key>] [--property-attribute <attr>] [--resource-sub-type <type>]
uip maestro flow bindings list   <file> [--limit <n>] [--offset <n>]
uip maestro flow bindings delete <file> <resource-key>
uip maestro flow bindings create <file> <name> <resource> <default-value> [--resource-key <key>] [--property-attribute <attr>] [--resource-sub-type <type>]
uip maestro flow bindings list   <file> [--limit <n>] [--offset <n>]
uip maestro flow bindings delete <file> <resource-key>
  • <resource> は、 connection、 queue、 process、 bucketなどのリソースの種類です。uip maestro flow bindings create --helpを実行して完全なリストを表示する。
  • --property-attribute バインドによって設定されるターゲット ノード プロパティ (例:name、 folderPath、 connection)。
  • --resource-sub-type では下位分類が提供されます (例:Agent、 Process)。
  • bindings delete は、ID によるエントリを 1 つも削除せず、指定したリソース キーを持つすべてのバインドを削除します。list では、nodes list の場合と同様に、--limitと --offsetが必要です。

データ図形: createの場合は BindingAddSuccess (Data.Binding)、 BindingListSuccess (Data.Bindings[]、 Count)、 deleteの場合は BindingRemoveSuccess (Data.DeletedBindings[]、 Count)。


UIP Maestro フロー形式​

自動レイアウト: .flow ファイル内のノードを再配置して、オーバーラップを削除し、グラフをきれいに配置します。

uip maestro flow format <file>
uip maestro flow format <file>

データシェイプ: Code: "FlowFormat"、 Data: { File, NodesTotal, EdgesTotal, NodesRepositioned, NodesResized, SubflowsTidied, VariableCount }。

参照​

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

接続

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

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

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

最新情報を取得