Do we need to implement each workflow in a separate workflow class?
Is it recommended to implement a generic workflow class where we will call activities and fire timers using the argument which passed to the workflow?
In our use case, we will be creating workflows from UI and it will be created by the end-user. So we cannot define our workflows initially. it is created on-demand.
In Temporal you write a single workflow type which interprets your DSL. The interpreter workflow receives the DSL version as an argument and executes it.