Sidebar

Is there a way to get access the Source configuration from code in a mapping?

0 votes
73 views
asked Sep 6 by phil-d-8268 (190 points)
I'd like to access the "Host" setting of an FTP Source node so that in mapping code I can use that without having to hard code the machine name again. Is there any way to get that?

1 Answer

0 votes
We have an enhancement slated for a future release that will let you use a Channel Cache or System Variable in the host field for an FTP/SFTP source.  Using this method, you can access that information from within a mapping node by using channelCache.getValue() or qie.getVariable().  Look for enhancement 4448 in the release notes of future releases.

Until that feature is relased, though, there is unfortunately not a way to programatically retrieve the host from the source node.
answered Sep 6 by jon-t-7005 (8,110 points)
...