Skip to main content

How to customize Workflow Type in Go

To customize the Workflow Type, set the Name parameter with RegisterOptions when registering your Workflow with a Worker.

  • Type: string
  • Default: function name
// ...
w := worker.New(temporalClient, "your_task_queue_name", worker.Options{})
registerOptions := workflow.RegisterOptions{
Name: "YourWorkflowName",
// ...
}
w.RegisterWorkflowWithOptions(YourWorkflowDefinition, registerOptions)
// ...