Share workflow types with a central service

What is the recommended way to share workflow types (workflow names) with a central service? I have group of services each corresponding to a type of workflow (could also be more than one) and I would like them all to share these workflow types with a common central service that actually executes these workflows. Few approaches that I am thinking of are - expose an api that gets called by individual services on startup, service discovery, or may be event driven where each service on startup publish an event notifying the central service to update the workflow in a database.

You can do it through code by sharing a library that includes workflow type definitions.

1 Like