他のワークフローを並行実行するワークフローを実行する
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
コネクタ経由で子ワークフローを呼び出す親ワークフローを使用します。子ワークフローの各反復処理には、反復の引数が渡されます。親ワークフローは、各子ワークフローの実行結果を待って保存します。
もっと見る
このコードサンプルを含む詳細なドキュメントについては、以下をご覧ください。
コードサンプル
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],[],[],[],null,["# Run a workflow that executes other workflows in parallel\n\nUses a parent workflow that invokes a child workflow through a connector. Each iteration of the child workflow is passed an iteration argument. The parent workflow waits for and stores the result of each child workflow execution.\n\nExplore further\n---------------\n\n\nFor detailed documentation that includes this code sample, see the following:\n\n- [Run a workflow that executes other workflows in parallel](/workflows/docs/tutorials/execute-workflows-from-workflow)\n\nCode sample\n-----------\n\n### YAML\n\n try:\n steps:\n - execute_child_workflow:\n call: googleapis.workflowexecutions.v1.projects.locations.workflows.executions.run\n args:\n workflow_id: workflow-child\n #location: ...\n #project_id: ...\n argument:\n iteration: ${iteration}\n result: execution_result\n - save_successful_execution:\n assign:\n - execution_results.success[string(iteration)]: ${execution_result}\n except:\n as: e\n steps:\n - save_failed_execution:\n assign:\n - execution_results.failure[string(iteration)]: ${e}\n\nWhat's next\n-----------\n\n\nTo search and filter code samples for other Google Cloud products, see the\n[Google Cloud sample browser](/docs/samples?product=workflows)."]]