Skip to main content
Solved

Terminate if output port is not empty

  • February 14, 2023
  • 6 replies
  • 35 views

Forum|alt.badge.img

The workbench below is incomplete. It aims at checking schema of a requested GeoJON before writting data to GDB.

I would like the writer to proceed only if 'Updated', 'Inserted' and 'Deteled' ports of ChangeDetector does not output anything. In other words, I would like the workbench to terminate before writing if those ports are not empty.

How could I achieve that please ?

image.png

Best answer by ebygomm

This sort of approach should work, join the junction from the terminator to the supplier of a featuremerger, all your gdb features to the requestor, then the unmerged port to the gdb.

imageFeatures will only come out the unmerged port if there is nothing coming out of the updated/inserted or deleted ports

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

6 replies

tomfriedl
Contributor
Forum|alt.badge.img+13
  • Contributor
  • 177 replies
  • February 14, 2023

After ChangeDetector:

  • NoFeatureTester (download from HUB)
  • FeatureWriter to GDB if there are features.

Forum|alt.badge.img
  • Author
  • 3 replies
  • February 14, 2023

Thank you for your answer. I guess you meant FeatureWriter to GDB if there are no features.

There's something I don't understand. If FeatureWriter is connected to NoFeatureTester then its _dataset attribute contains one feature from the NOINPUT port. That's not the feature I want to write. I 'd like to write the 920 requested features.

image2


tomfriedl
Contributor
Forum|alt.badge.img+13
  • Contributor
  • 177 replies
  • February 14, 2023

I think is so possible:

NoFeatureTester


Forum|alt.badge.img
  • Author
  • 3 replies
  • February 14, 2023

Well thank you for your effort but I may not have made myself clear.

This workbench is for checking a GeoJSON schema before writing data to an existing GDB table.

If GeoJSON schema is identical to the one describe in the CSV then I want data to be written.

Is it what you designed ?


ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3422 replies
  • Best Answer
  • February 14, 2023

This sort of approach should work, join the junction from the terminator to the supplier of a featuremerger, all your gdb features to the requestor, then the unmerged port to the gdb.

imageFeatures will only come out the unmerged port if there is nothing coming out of the updated/inserted or deleted ports


Forum|alt.badge.img
  • Author
  • 3 replies
  • February 15, 2023

Thank you very much @ebygomm​ . It works pretty well.