Skip to main content
Solved

How do I loop in this situation?


mr_fme
Enthusiast
Forum|alt.badge.img+8

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

Best answer by liamfez

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

View original
Did this help you find an answer to your question?

5 replies

liamfez
Influencer
Forum|alt.badge.img+34
  • Influencer
  • July 29, 2024

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?


mr_fme
Enthusiast
Forum|alt.badge.img+8
  • Author
  • Enthusiast
  • July 29, 2024

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…

 

 


jkr_wrk
Influencer
Forum|alt.badge.img+29
  • July 29, 2024

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/


liamfez
Influencer
Forum|alt.badge.img+34
  • Influencer
  • Best Answer
  • July 29, 2024

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


mr_fme
Enthusiast
Forum|alt.badge.img+8
  • Author
  • Enthusiast
  • July 29, 2024

@liamfez I guess the custom transformer a best way.

 

Thanks


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings