Skip to main content
Question

VariableRetriever and VariableSetter

  • May 17, 2021
  • 2 replies
  • 131 views

muzhnasto
Contributor
Forum|alt.badge.img+12

Hi, everyone!

Maybe you could help me with transformers: VariableRetriever and VariableSetter. I need to test models for some parameters and make a report. So that's why I have several VariableSetter's and several VariableRetriever's. And when I run hole workspace one of them works wrong, and VariableSetter set parameter, but VariableRetriever doesn't receive it. But when I run only several transformers near VariableSetter and VariableSetter, everything is excellent and works right. What's wrong? Where could I find a problem? Or maybe there is another idea, how could I make a test "if at least one thing has special feature" then take this chain, and if not, I want to use another one. Any ideas? Thank you, everyone, in advance! Hope somebody could help me!!!

 

2 replies

dustin
Influencer
Forum|alt.badge.img+31
  • Influencer
  • May 17, 2021

Consider using the FeatureMerger to transfer the attributes from one stream to the other. I've come to find VariableSetter/Retriever to be unreliable.


nielsgerrits
VIP
Forum|alt.badge.img+62

The important thing with VariableSetters and VariableRetrievers is to make sure the stream with the VariableSetter need to run before the stream with the VariableRetriever.

A FeatureMerger as suggested by @dustin​ can be a good alternative. Requestor and Supplier both set to 1 if you don't have an ID to merge by.