Solved

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

  • 14 September 2021
  • 5 replies
  • 7 views

Badge +5

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 ....

icon

Best answer by caracadrian 14 September 2021, 12:58

View original

5 replies

Badge +20

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.

Badge +5

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 ?

Badge +20

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

Badge +5

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 ! 😁

Badge +5

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 ?

Reply