Hello,
The question is self-explanatory.
If you’ re wondering why would anyone use “Workflow.sideEffect(System::currentTimeMillis)” the answer is that we can put arbitrary method inside of side effect, that could be mocked for testing purposes.
I’ve checked the docs. Not completely sure, but it seems like Workflow.currentTimeMillis() would return time according to temporal’s servers? Does this mean that our workflows could work well even if our own internal machines get out of sync?