Here is a tutorial in 8 graphical and easy to follow steps:
1 Insert a Creator and a FeatureReader, select them, right click and select Create Custom transformer
2 Give it a name, select a Category, maibe write some Overview and Help instructions and click OK
3 After you create the custom transformer you should be in edit mode. If not just right click it and select Edit. In the Navigator pane right click User Parameters and select Manage User Parameters
4 To create a new Parameter click on + and chose File/URL
5 Set the Parameter identifier, Prompt, set Item to Select to File, you can even select Specify Extension Filters, set Filter to *.json and give it a description. Click OK when you are done.
6 Right click on the canvas and insert an Output. Connect it to the Generic port of your FeatureReader.
7 Set FeatureReader's Dataset to the Parameter you just created
8 Exit editing mode of your custom transformer by clicking the Main tab of the workspace and you should be ready
Good question (and great answer from @caracadrian ). I'd add that we have an upcoming webinar on custom transformers that may be of use to you. See this link for more details: https://www.safe.com/webinars/how-to-simplify-your-workflow-with-fme-custom-transformers
Here is a tutorial in 8 graphical and easy to follow steps:
1 Insert a Creator and a FeatureReader, select them, right click and select Create Custom transformer
2 Give it a name, select a Category, maibe write some Overview and Help instructions and click OK
3 After you create the custom transformer you should be in edit mode. If not just right click it and select Edit. In the Navigator pane right click User Parameters and select Manage User Parameters
4 To create a new Parameter click on + and chose File/URL
5 Set the Parameter identifier, Prompt, set Item to Select to File, you can even select Specify Extension Filters, set Filter to *.json and give it a description. Click OK when you are done.
6 Right click on the canvas and insert an Output. Connect it to the Generic port of your FeatureReader.
7 Set FeatureReader's Dataset to the Parameter you just created
8 Exit editing mode of your custom transformer by clicking the Main tab of the workspace and you should be ready
Thank you so much! It works! :)