I wonder what is the right way to compose a generic input parameter, so that different activities can take their own parameters out through type assertion.
tried to put parameters into map[string]interface{} (e.g. a http.header and a string) and pass to execute workflow, but when I grab the header in activity execution using (input[“header”]).(http.Header), it is not http.header type anymore, type change to map[string]interface{}, is there a way to get back original type?
header := make(http.Header)
header.Add("a", "b")
header.Add("c", "d")
data := map[string]interface{}{
"header": header,
"body": "test",
}