Connector für Workflow-Ausführungen
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Workflow-Connector, der die integrierte Funktion definiert, die für den Zugriff auf Workflows-Ausführungen verwendet wird.
Weitere Informationen
Eine ausführliche Dokumentation, die dieses Codebeispiel enthält, finden Sie hier:
Codebeispiel
Nächste Schritte
Wenn Sie nach Codebeispielen für andere Google Cloud -Produkte suchen und filtern möchten, können Sie den Google Cloud -Beispielbrowser verwenden.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","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)."]]