How to send a attribute to downstream processor and use it in JoltTransformJSON
I had a flow which needs to be replicated for 100 jobs.
one of my jolt transform looks like this.
[{
"operation": "default",
"spec": {
"*": {
"id": "#{customer_id_1}",
"warehouse_loaddate" : "${now():format('yyyy-MM-dd HH:mm:ss', 'CET')}"
}
}
}]
The customer_id_1 is a parameter currently, which is different in all 10 different jobs. like there are many different parameters in the context like
customer_id_2
customer_id_3 etc..
With this I need to touch my code at 100 different places...
But since I know the customer ID is present in my upstream processor.. so I just want to name the parameter customer_id and get the value from upstream dynamically... Is there a way that I can send a attribute to downstream processor and use it in jolt ?
Without using parameters from parameter context ?
We use #{<id>} and ${<func>} to access parameters and Functions.. but how can i refer an attribute from my upstream processor ?
Please help me understand this.

