Skip to main content

Hi everyone,

 

I am wondering how I can have a FeatureReader that dynamically adapts itself to any changing feature type name. The feature type name is linked to a private parameter, but since the output port created by the reader is ''named'', everytime I change the value of the private parameter, the output port keeps its original name and just goes empty. It there a way to make that ''named output port'' dynamically change its name to fit the value entered in the private parameter?

 

I am using a Geodatabase reader.

 

See attached files for screenshots.

 

Thank you!!

Part of the answer is in your 2nd screenshot, the generic port. You can specify in the Output section to use a Single Output Port, so that the specific feature layer names won't be shown as an output port. But to answer your question...no, it's not possible to dynamically change the port at runtime.image


I tried this, but then the data seems to be sent to the <Generic> output without any fields. Is there a way to sent all of the data, with all the columns, through the <Generic> output port?


You can expose attributes on the Generic port for attributes that you need to work with in the workspace.

imageWhen you read data through the Generic port, the fields are still present, they just aren't exposed. But even though they aren't exposed, they can still be written on a dynamic writer, which is generally when the generic port would be used.


@antoine.prince​ The Tutorial on dynamic workflows gives a little more background on this puzzle.


Reply