Stay organized with collections
Save and categorize content based on your preferences.
The Workflows connector defines the built-in
functions that can be used to access other Google Cloud products within a
workflow.
This page provides an overview of the individual connector.
There is no need to import or load connector libraries in a workflow—connectors
work out of the box when used in a call step.
You can use the helper method run to launch a workflow execution. This is
simpler than using the create API as it doesn't require workflow arguments in a
JSON string format.
To learn more, see the run documentation.
Returns a list of executions which belong to the workflow with the given
name. The method returns executions of all workflow revisions. Returned
executions are ordered by their start time (newest first).
Starts a workflow execution and waits for it to finish. This provides
a simpler interface to launch a workflow execution than the create() method.
Note that run() calls create() to start a new execution, and optionally
accepts execution parameters defined in the YAML source code as either integer,
float, bool, string, list, or map data types.
Returns a list of executions which belong to the workflow with the given
name. The method returns executions of all workflow revisions. Returned
executions are ordered by their start time (newest first).
Starts a workflow execution and waits for it to finish. This provides
a simpler interface to launch a workflow execution than the create() method.
Note that run() calls create() to start a new execution, and optionally
accepts execution parameters defined in the YAML source code as either integer,
float, bool, string, list, or map data types.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Workflow Executions API Connector Overview\n\nThe Workflows connector defines the built-in\nfunctions that can be used to access other Google Cloud products within a\nworkflow.\n\nThis page provides an overview of the individual connector.\nThere is no need to import or load connector libraries in a workflow---connectors\nwork out of the box when used in a call step.\n\nWorkflow Executions API\n-----------------------\n\nExecute workflows created with Workflows API.\nTo learn more, see the [Workflow Executions API documentation](https://cloud.google.com/workflows).\n\nHelper Method\n-------------\n\nYou can use the helper method `run` to launch a workflow execution. This is\nsimpler than using the `create` API as it doesn't require workflow arguments in a\nJSON string format.\nTo learn more, see the [run documentation](/workflows/docs/reference/googleapis/workflowexecutions/v1/projects.locations.workflows.executions/run).\n\nWorkflow Executions connector 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\n### JSON\n\n [\n {\n \"init\": {\n \"assign\": [\n {\n \"project\": \"${sys.get_env(\\\"GOOGLE_CLOUD_PROJECT_ID\\\")}\"\n },\n {\n \"location\": \"us-central1\"\n },\n {\n \"workflow\": \"[fill in the workflow to execute]\"\n },\n {\n \"arguments\": {\n \"hello\": \"world\",\n \"integer\": 100,\n \"boolean\": true\n }\n }\n ]\n }\n },\n {\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}\"\n },\n \"result\": \"r1\"\n }\n },\n {\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 }\n },\n \"result\": \"r2\"\n }\n },\n {\n \"the_end\": {\n \"return\": [\n \"${r1}\",\n \"${r2}\"\n ]\n }\n }\n ]\n\nModule: googleapis.workflowexecutions.v1.projects.locations.workflows\n---------------------------------------------------------------------\n\nModule: googleapis.workflowexecutions.v1.projects.locations.workflows.executions\n--------------------------------------------------------------------------------\n\nModule: googleapis.workflowexecutions.v1.projects.locations.workflows.executions.callbacks\n------------------------------------------------------------------------------------------\n\nModule: googleapis.workflowexecutions.v1.projects.locations.workflows.executions.stepEntries\n--------------------------------------------------------------------------------------------\n\nModule: googleapis.workflowexecutions.v1beta.projects.locations.workflows.executions\n------------------------------------------------------------------------------------"]]