Hi team!
Is there a more graceful way to implement polymorphic activity?
I want to use Temporal as my workflow engine and now I need to abstract a series of functions of activity(which will be annotated with ActivityInterface
) such as start
, stop
, and so on. Each of the functions can be implemented with different uses. It means there will be so many implementations of the activity(which will be annotated with ActivityInterface
)
According to the code, I need to register so many implementations.
So I wondered if there is a convenient and graceful way to implement it.
Thanks so much!