We are designing a workflow engine for multiple tenants. Tenants are for ecommerce stores of different product brands. So the number of tenants will be ever increasing and will be high in near future.
Because of these reasons, we are thinking of designing generic flows that work for all tenants. And in these generic flows, before and after every tasks, we are trying to configure execution hooks for each tenants. We should be able to add logic for these hooks in runtime.
Is this approach correct? Is it possible to implement these hooks and add logic during runtime without deployments? Please help.