Skip to content

Support Custom Names for Workflows and Activities (and support to anonymous functions) #743

@tscolari

Description

@tscolari

Is your feature request related to a problem? Please describe.

Currently RegisterWorkflow and RegisterActivity do not support custom naming. All names are inferred from the function name.
This is complicated because it forces a certain pattern of code organization (e.g. two different packages can not register the same Workflow/Activity if the function name is the same). This also do not allow for patterns like Workflow and Activities factories.

Describe the solution you'd like

To be able to register anonymous functions with custom names.

e.g.

RegisterWorkflow(myfunc, "RegisterUserWorkflow")

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions