Skip to main content
Question

sequential execution

  • Apr 28, 2026 8:41 PM UTC
  • 7 replies
  • 184 views

marionmahot
Contributor
Forum|alt.badge.img+4

Hello,

I created an FME script in which I have 10 Readers and 10 Writers. I would like to run this script in a specific order. I don’t want FME to execute everything in parallel, but instead wait for Writer A to finish before reading Reader B… How is it possible to run things sequentially?

Thank you for your help

7 replies

hkingsbury
Celebrity
Forum|alt.badge.img+73
  • Celebrity
  • Apr 28, 2026 8:52 PM UTC

There are a few approaches you could take, one would require FME Flow and using an automation. Each reader/writer pair (and any logic) would be in their own workspace. Then using an automation you’d chain each of the workspaces together so once the first one has completed, the second one begins.

Another approach, that will work across both Form and Flow, is to make use of feature readers and feature writers. The feature reader allows a feature to trigger a read, and the feature writer allows you to continue processing after features have been written


marionmahot
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • Apr 28, 2026 10:44 PM UTC

Thank you only with Form and with one workbench what is the process ?

tks 


geomancer
Evangelist
Forum|alt.badge.img+71
  • Evangelist
  • Apr 29, 2026 10:27 AM UTC

Use FeatureReaders and FeatureWriters.

Just make sure that only 1 feature enters a FeatureReader, as the FeatureReader performs its action once for every feature.

 


marionmahot
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • Apr 29, 2026 1:40 PM UTC

Thank you very much, I'll try it.


marionmahot
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • Apr 30, 2026 12:44 PM UTC

In this same process, ​ the first layer is incremented under PostgreSQL with an incremental ID. I then want to retrieve the ID of the first PostgreSQL layer to perform a join to my third layer. How do I retrieve this ID knowing that it is automatically created under PostgreSQL?

 


geomancer
Evangelist
Forum|alt.badge.img+71
  • Evangelist
  • Apr 30, 2026 2:43 PM UTC

You can use SQLExecutor to retrieve the ID.

Something like

select max(ID) from myTable


marionmahot
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • May 5, 2026 4:23 PM UTC

Thank you, In the end I used Databasejoiner