Pass context value from Workflow to Activities

Hi guys.
I send tenant from client to worker like an input parameter, in worker I have that tenant, so I want to pass that value to context, so in activities I can get that value without using parameters. Do we have any way to do that?
Btw: Can we pass context value from start (client) to worker ? I will be very useful if we want to handle multiple tenancy inside our code.
Thanks

You can use ContextPropagator or interceptors to achieve this. See ctxpropagation sample.

1 Like

Thank @maxim , I solved my issue already :+1: