Question

How to Author A User Parameter to Select Which Writer to be used when having same Data source and many end point


I am writing a WS which is reading an Excel sheet for two Writers which are supposed to write in two different environments (DEV and TEST)

FMEAs you can see since the source data is same I am using only one stream workflow instead of duplicating the transformers for each writer (DEV and TEST)

 

I have created a User Parameter like this

 

imageimage 

Now, can someone please let me know where and how should I assign this into the workflow to select the endpoint (Which Writer to be used)?

 

Thanks

 

 

 


2 replies

Userlevel 2
Badge +17

Hi @bhk​,

You can use a Tester transformer right before the output feature types to test whether the content of the environment parameter == DEV, and send the Passed features to the DEV output and the Failed features to TEST.

Great! Thanks

Reply