Hi Gino, The PR that you point to updated the PutTCP processor so that Expression Language can be used to reference variables for the host and port. However, it does not allow the EL to be used to be reference FlowFile attributes. This processor creates a pool of connections to the given host/port, so allowing the host & port to be different for each FlowFile attribute could be a little more complex.
However, I do think that it's a reasonable ask, so if you would like to create a JIRA to allow FlowFile Attributes to be used in the Expression Language, then that would help to get it on people's radars. And of course if you are inclined to jump in and work on that, we'd be happy to review a PR that provides the functionality! Thanks -Mark On Dec 17, 2017, at 6:45 PM, Gino Lisignoli <[email protected]<mailto:[email protected]>> wrote: Already submitted to Jiri, but thought this should be brought to wider attention: Although https://github.com/apache/nifi/pull/1361 was merged into master, it doesn't seem to function. It looks like expression language variables do not get evaluated if they are present in PORT or HOSTNAME. This causes the PutTCP to produce the following error: PutTCP[id=01601006-15cf-1651-ca50-f9597b0f303f] PutTCP[id=01601006-15cf-1651-ca50-f9597b0f303f] failed to process session due to java.lang.NumberFormatException: For input string: "": For input string: "" See Jiri Issue for example template.
