Skip to main content
Solved

how to automatically filter each value using AttributeFilter or another transformer?

  • September 14, 2021
  • 5 replies
  • 71 views

davidlee
Supporter
Forum|alt.badge.img+8

FME 2016 Build 16494

 

I want to automatically filter each info field value and the workspace will run them one by one.

It's like:

Screenshot 2021-09-14 172459Then

Screenshot 2021-09-14 172547and

Screenshot 2021-09-14 172617Anybody help me ! pls ....

Best answer by caracadrian

Use Workspace Runner.

Create a workspace that will be ran depending on the value of a PARAMETER that the Runner workspace sends via attribute to the WorkspaceRunner.

Use Tester instead of AttributeFIlter with Right Value set to that parameter.

You can use StatisticsCalculator to get a single feature from the dataset in the Runner workspace (or Sampler with GroupBy set). OR, if your dataset allows it, use a WHERE clause in the reader (on the to run side) set to PARAMETER.

Runner_to_runOn the left the Runner and on the right the workspace to Run. Notice that the Test is done on the same attribute.

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.

5 replies

caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • 571 replies
  • Best Answer
  • September 14, 2021

Use Workspace Runner.

Create a workspace that will be ran depending on the value of a PARAMETER that the Runner workspace sends via attribute to the WorkspaceRunner.

Use Tester instead of AttributeFIlter with Right Value set to that parameter.

You can use StatisticsCalculator to get a single feature from the dataset in the Runner workspace (or Sampler with GroupBy set). OR, if your dataset allows it, use a WHERE clause in the reader (on the to run side) set to PARAMETER.

Runner_to_runOn the left the Runner and on the right the workspace to Run. Notice that the Test is done on the same attribute.


davidlee
Supporter
Forum|alt.badge.img+8
  • Author
  • Supporter
  • 32 replies
  • September 14, 2021

Use Workspace Runner.

Create a workspace that will be ran depending on the value of a PARAMETER that the Runner workspace sends via attribute to the WorkspaceRunner.

Use Tester instead of AttributeFIlter with Right Value set to that parameter.

You can use StatisticsCalculator to get a single feature from the dataset in the Runner workspace (or Sampler with GroupBy set). OR, if your dataset allows it, use a WHERE clause in the reader (on the to run side) set to PARAMETER.

Runner_to_runOn the left the Runner and on the right the workspace to Run. Notice that the Test is done on the same attribute.

i understand, but i'm using FME 2016 build 16494, it doesn't have the same features as the 2021 version

Screenshot 2021-09-14 192042Screenshot 2021-09-14 192326Do you have any solution on FME 2016 ?


caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • 571 replies
  • September 14, 2021

i understand, but i'm using FME 2016 build 16494, it doesn't have the same features as the 2021 version

Screenshot 2021-09-14 192042Screenshot 2021-09-14 192326Do you have any solution on FME 2016 ?

In the workspace to be ran create a User Parameter that will be used to pass the attribute value through WorkspaceRunner.PARAMETERSSave the workspace, delete WorkspaceRunner reinsert it and you will have the option to set the value to an attribute


davidlee
Supporter
Forum|alt.badge.img+8
  • Author
  • Supporter
  • 32 replies
  • September 14, 2021

i understand, but i'm using FME 2016 build 16494, it doesn't have the same features as the 2021 version

Screenshot 2021-09-14 192042Screenshot 2021-09-14 192326Do you have any solution on FME 2016 ?

I have done it, many thanks bro ! 😁


davidlee
Supporter
Forum|alt.badge.img+8
  • Author
  • Supporter
  • 32 replies
  • September 25, 2021

i understand, but i'm using FME 2016 build 16494, it doesn't have the same features as the 2021 version

Screenshot 2021-09-14 192042Screenshot 2021-09-14 192326Do you have any solution on FME 2016 ?

Do you have any other solution without using WorkspaceRunner, by the way ?