The cost of obtaining an workflow id

What is cheaper, getting the workflow ID from a global variable (saving it when starting the workflow) or from Workflow.getInfo().workflowId?

The difference is negligible. Do whatever is more ergonomic.

1 Like