As I understand, when writing a java workflow, the developer does not worry about managing state himself. Isn’t managing states different from that?
Developer has to manage state in the form of variables of the program he is writing. The Temporal takes care of preserving the state of variables and threads. So the state of the dynamic workflow execution has to be managed by your code.
- Is it possible to have a builder API part of Temporal SDK that could compose a dynamic workflow?
We have plans to add DSL SDK for simplifying the creation of your own dynamic workflows. But at this point, you have to write it yourself.
- What are your thoughts on dynamic code generation? I know it’s not straightforward to load the compiled classes in Java, maybe using a byte-code generation library?
I’m not sure about the value of this. Writing a JSON interpreter is 100 times simpler IMHO.