How to define Workflow return values
A Workflow Execution can return the results of a Workflow.
To return the results of a Workflow Execution, use either start_workflow() or execute_workflow() asynchronous methods.
handle = await client.start_workflow(
"your-workflow-name",
id="your-workflow-id",
task_queue="your-task-queue",
)
result = await handle.result()
execute_workflow() is a helper function for start_workflow() and handle.result().
handle = await client.execute_workflow(
"your-workflow-name",
id="your-workflow-id",
task_queue="your-task-queue",
)