First off Temporal is amazing!
I am beginning to learn Temporal in typescript and had question that I couldn’t find the answer to.
Should you call workflows from activities? Especially when you await completion of the workflow? I don’t have a use case at the moment. Just trying to get in the right frame of mind.
Should you call workflows from activities? Especially when you await completion of the workflow?
You can use the sdk client apis in your activity code, yes.
For completion of external workflow (not child workflow) from workflow code, see open issue here.
Thanks for the answer!
Say you’re calling an outside API from an activity and the incoming result* may vary. Does that break determinism on the workflow or does Temporal store the successful api call result in a database?
All activity results are recorded in the DB as part of the workflow execution history.