Skip to main content
Solved

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

  • September 14, 2021
  • 5 replies
  • 46 views

davidlee
Supporter
Forum|alt.badge.img+7

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.

View original
Did this help you find an answer to your question?

5 replies

caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • 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+7
  • Author
  • Supporter
  • September 14, 2021
caracadrian wrote:

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
  • September 14, 2021
davidlee wrote:

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+7
  • Author
  • Supporter
  • September 14, 2021
davidlee wrote:

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+7
  • Author
  • Supporter
  • September 25, 2021
davidlee wrote:

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 ?


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings