FME: Tester on published parameters + composite test
20 July 2011 Leave a comment
I just discovered a very cool feature in FME. In the past, when I wanted to test a published parameter, I had to use a ParameterFetcher, than a Tester. I found it pretty annoying. Yeah, I know, I’m a lazy person. Ask my wife. So, I wanted the Tester to have the capability of testing published parameters. Well, it seems Safe Software read my mind! In FME2010 – and maybe also in the previous versions, I didn’t check – you can now use the Tester transformer to check the value of published parameters. Plus, there is a new powerful way of combining many tests in only one transformer: the Composite Test criteria! Here’s the easy way of doing all this.
1- Suppose you have a bunch of published parameters – strings, integers, and so on – that you want to test.
2- Use the good old Tester transformer, right click on a field, choose “Set to published parameter”, then select the parameter you want to test.
3- Select the “Composite Test” option in the “Pass Criteria” field. You can then put whatever logic you want in the Test Expression field.
Tadam! Enjoy!






