Workflows 実行用のコネクタ
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Workflows の実行へのアクセスに使用する組み込み関数を定義する Workflows コネクタ。
もっと見る
このコードサンプルを含む詳細なドキュメントについては、以下をご覧ください。
コードサンプル
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 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,["# Connector for Workflows executions\n\nWorkflows connector that defines the built-in function used to access Workflows executions.\n\nExplore further\n---------------\n\n\nFor detailed documentation that includes this code sample, see the following:\n\n- [Workflow Executions API Connector Overview](/workflows/docs/reference/googleapis/workflowexecutions/Overview)\n\nCode sample\n-----------\n\n### YAML\n\n # This workflow demonstrates how to use the Cloud Workflow Executions connector\n # to create an execution for a workflow. Make sure the workflow\n # already exists in your project.\n # Expected successful output: \"SUCCESS\"\n\n - init:\n assign:\n - project: ${sys.get_env(\"GOOGLE_CLOUD_PROJECT_ID\")}\n - location: \"us-central1\"\n - workflow: \"[fill in the workflow to execute]\" # Make sure this workflow exists in your project.\n - arguments:\n hello: world\n integer: 100\n boolean: true\n # The run helper method is the preferred way to execute a workflow as it doesn't require\n # encoding the workflow arguments in a JSON-formatted string. To compare\n # the usage, we list two demo steps:\n - run_execution:\n call: googleapis.workflowexecutions.v1.projects.locations.workflows.executions.run\n args:\n workflow_id: ${workflow}\n location: ${location}\n project_id: ${project}\n argument: ${arguments} # Arguments could be specified inline as a map instead.\n result: r1\n - create_execution:\n call: googleapis.workflowexecutions.v1.projects.locations.workflows.executions.create\n args:\n parent: ${\"projects/\" + project + \"/locations/\" + location + \"/workflows/\" + workflow}\n body:\n argument: ${json.encode_to_string(arguments)}\n result: r2\n - the_end:\n return:\n - ${r1}\n - ${r2}\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)."]]