Skip to main content
Question

Inspector results not showing when used in custom transformers with loop and blocking


chau
Contributor
Forum|alt.badge.img+3
  • Contributor

In my FME 2020.0.0.1 workspace

 

I have a separate (external/exported) custom transformer with a loop and it contains a blocking transformer:

When I execute my workspace I would expect the Data Inspector window to show up in the end with one result from the workspace and around three results from the custom transformer. I only get the result from the inspector in the workspace.

I do however see 1 + 3 FFS files in my C:\\Users\\me\\AppData\\Local\\Temp\\wb-inspectors-pMivws folder which I can drag into the Data Inspector window and evaluate (though the three loop inspector results are shown as one combined entry).

Why am I only seeing the results from the workspace and not those from within the custom transformer?

7 replies

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • May 29, 2020

@chau

 

You create only 1 object.

You reset the counter every iteration, of which you have one.

You have no index to increment as well.

Setting the "maximum iteration count" attribute to 3, just sets a limit to the iterations.

But you have only 1 object so you have just 1 iteration.

 

It's a mandotary parameter when using blocking tranformers in loops.

With some effort you can even use this parameter.

 

Basically it looks like a loop but it is limited to 1 run and there is no index or any other test to loop.

 

Try creating more then 1 object and run the script.

 

 

 

 

Have fun

 

Gio

 


chau
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • May 29, 2020
gio wrote:

@chau

 

You create only 1 object.

You reset the counter every iteration, of which you have one.

You have no index to increment as well.

Setting the "maximum iteration count" attribute to 3, just sets a limit to the iterations.

But you have only 1 object so you have just 1 iteration.

 

It's a mandotary parameter when using blocking tranformers in loops.

With some effort you can even use this parameter.

 

Basically it looks like a loop but it is limited to 1 run and there is no index or any other test to loop.

 

Try creating more then 1 object and run the script.

 

 

 

 

Have fun

 

Gio

 

Hi @gio, I get inspector data in my FFS files for three iterations. And even if I only iterated once, can we then still agree on, that I should expect output from the inspector in the custom transformer for that iteration?


gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • May 29, 2020

@chau

 

Here is a sample of it working as you expected.

This is fme2018 so you need to do @Value($(ITERATION_COUNT_ATTR)) to acces it.

 


chau
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • May 29, 2020
gio wrote:

@chau

 

Here is a sample of it working as you expected.

This is fme2018 so you need to do @Value($(ITERATION_COUNT_ATTR)) to acces it.

 

I think you are misunderstanding my question. The custom transformer is just a mock-up, I am talking about results from inspectors not showing up in the Data Inspector window in FME 2020.


gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • May 29, 2020

@chau

Yes, that is what you'd expect.

 

OK, mock up was not represantitative. Sit will never loop more then once.

 

I assume, that my sample does not show it either then as i now understand it to be a 2020 issue.

 

2020 version. Not tried it. If it 's got issues i wont be doing that soon then.

 

Thats for Safe hen.

 

GReets

Gio

 

 

 

 

 

 

 

 


ebygomm
Influencer
Forum|alt.badge.img+38
  • Influencer
  • May 29, 2020

I don't think inspectors in linked custom tranformers (which it must be if it is blocking and looping) ever trigger the inspection window to open, I'm not sure if that is expected behaviour or not


gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • May 29, 2020
ebygomm wrote:

I don't think inspectors in linked custom tranformers (which it must be if it is blocking and looping) ever trigger the inspection window to open, I'm not sure if that is expected behaviour or not

yes they do (or did if you use 2020 appearently)

 

My example is linked and it does Inspect (2018 version).


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