How to ensure all activities within a workflow to be executed by the same worker, once scheduled

How can I enforce the worker which executes the first activity will also be the worker to execute the rest activities in the workflow. In other words, all activities of within the workflow must be executed by the same worker, although which worker is not predetermined?
Background, there are lots of local resources being setup by the firs activity and used by the rest ones.

This is pretty standard requirements. See the fileprocessing sample by the SDK of your choice.