Skip to main content
Question

sequential execution

  • April 28, 2026
  • 7 replies
  • 105 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+70
  • Celebrity
  • April 28, 2026

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
  • April 28, 2026

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

tks 


geomancer
Evangelist
Forum|alt.badge.img+64
  • Evangelist
  • April 29, 2026

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
  • April 29, 2026

Thank you very much, I'll try it.


marionmahot
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • April 30, 2026

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+64
  • Evangelist
  • April 30, 2026

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

Thank you, In the end I used Databasejoiner