Execuções do conector do Workflows
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Conector do Workflows que define a função integrada usada para acessar as execuções do Workflows.
Mais informações
Para ver a documentação detalhada que inclui este exemplo de código, consulte:
Exemplo de código
Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","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)."]]