Skip to main content

Hi,

I have a process that begins by going through the AttributeCreator2 transformer, but after some transformers, there is a validation. If the result is true, the features will arrive at the DateTimeConverter as shown in the image below...
 

 

I would like the process to restart at the SentinelDownloader transformer after the DateTimeConverter returns, and to consider the features with the AttributeCreator transformer only at the start of the entire process. I guess the process should work like a loop.

Thanks

Are you saying you would like the features coming out of the DateTimeConverter to enter the SentinelDownloader and be processed by all the following transformers?

Or are you saying you simply want the whole process to run again once the first run is complete and outputs data?


Yes!  I would like the features coming out of the DateTimeConverter to enter the SentinelDownloader and be processed by all the following transformers, but the process begins in Attribute Creator, the second, third...pass will be DateTimeConverter like a loop process…

 

 


It's better to explain what is happening in your workbench. Because most of the time looping is not the solution in FME.

If it is really the solution you have to create a CustomTransformer and set up a looping flow.

But maybe take a look at https://www.safe.com/webinars/to-loop-or-not-to-loop-overcoming-roadblocks-with-fme/


I am not exactly sure what your end goal may be, “looping” may not be the best solution. But one solution may be to add all of the relevant transformers to a new custom transformer. You could then add that custom transformer to the canvas again after the DateTimeConverter.

You may also want to look into this documentation for looping with custom transformers to see if that is what you are looking for. https://docs.safe.com/fme/html/FME-Form-Documentation/FME-Form/Workbench/transformers_custom_looping.htm


@liamfez I guess the custom transformer a best way.

 

Thanks


Reply