Yasin
Yasin

Reputation: 2029

Temporal: Using time related functions in activity implementation

The documentation says

Only use Workflow.currentTimeMillis() to get the current time inside a Workflow.

Does it apply only to workflows or activities as well? Can I use System.currentTimeMillis() in activity implementation?

Upvotes: 0

Views: 788

Answers (1)

Yasin
Yasin

Reputation: 2029

The implementation constraints mentioned in docs applies to workflows and not the activities. System.currentTimeMillis() can be used in an activity implementation. OP here.

Upvotes: 1

Related Questions