Hi team, we want to pass additional user metadata which we want to retrieve in workflow and evaluate if we want to execute it or not. Which field is right one to do this? Can we use userMetadata field and can it be retrieved within workflow? or does memo field is suitable for this?
Use ContextPropagation.
Thanks for the response @maxim, we want to inject this data from server side grpc interceptor, can we do that?
It depends how you want to use it. The metadata injected in gRPC intercpetor will be visible by the frontend, but not by the workflow implementation.
@maxim what is recommended to get data in workflow implementation?
The recommended way is to use ContextPropagation. You can try to inject the context headers from the gRPC interceptor into the StartWorkflow command.