In my jobs and routes, I often need maps with multiple inputs (both tHMap and cMap components).
I successfully created inherited structures to use the I/O function ReadURL but I have problems to use context variables inside it. There are many issues on Talend JIRA about this topic (jira.talendforge.org/browse/TDM-313, jira.talendforge.org/browse/TDM-246) and also topics in forum (
www.talendforge.org/forum/viewtopic.php?pid=189533).
The solution that is proposed in these references (i.e. the usage of ${context.variable_name}) is not working on Talend Data Service Platform 6.2.1.
For maps inside a route I used a workaround setting a header before the Maps (as suggested in jira.talendforge.org/browse/TDM-329) and remove theme afterwards but for maps inside jobs I don't know how to do it.
Moreover the documentation says:
"This function can be used to allow reading from multiple documents/objects in the map execution that are assigned dynamically by calling methods on the MapExecutionContext. In this case the URL is not required."
It is not clear how this MapExecutionContext can be used or setted.
Can anybody help me?