Skip to main content
Best Answer

Conditionnal writing

  • June 22, 2020
  • 2 replies
  • 13 views

alc33
Contributor
Forum|alt.badge.img+13

Hi!

I have a background map on DWG + a set of data. My workbench look for an error on the set and if it found it, a buffer is output.

I would like to export the backgroud only when an error is found. Is it possible?

Thanks!

Best answer by ebygomm

It should be possible, how best to achieve it probably depends on your workflow. If you can post your workflow or a screenshot people can probably advise better.

One way might be to use a featuremerger, send the error (use a sampler if more than one error) to the supplier, send your background map to the requester, join on the value1, then link only the merged port up to your writer. If there is no error, nothing exits the merged port

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.

2 replies

ebygomm
Influencer
Forum|alt.badge.img+46
  • Influencer
  • Best Answer
  • June 22, 2020

It should be possible, how best to achieve it probably depends on your workflow. If you can post your workflow or a screenshot people can probably advise better.

One way might be to use a featuremerger, send the error (use a sampler if more than one error) to the supplier, send your background map to the requester, join on the value1, then link only the merged port up to your writer. If there is no error, nothing exits the merged port


alc33
Contributor
Forum|alt.badge.img+13
  • Author
  • Contributor
  • June 23, 2020

Hi!

Perfect! It's exactly what I want.

Thanks!