Skip to main content
Solved

Variable Persistence in Looping Custom Transformers

  • February 4, 2014
  • 1 reply
  • 13 views

Forum|alt.badge.img+4
In regards to Linked Looping Custom Transformers, is there a way for Variables to persist through iterations? Currently the Global Variables persist per feature even though FME seems to process a single iteration at a time rather than perform all iterations for a single feature before going to the next feature.

 

 

What i'm seeing is:

 

Iteration 1:

 

1st feature goes in, global variable set to a. Needs to be looped.

 

2nd feature goes in, variable appended to a, b. Needs to be looped.

 

3rd feature goes in, variable appended to a, b, c. Needs to be looped

 

 

Iteration 2: 

 

1st feature goes through loop, yet variable's value is a.

 

2nd feature goes through loop, its variable value is b.

 

 

This is likely following the flow of features yet the log file is extremely confusing as it shows the processing via iterations rather than tracing a single feature through all iterations.

 

 

 

Best answer by takashi

Hi,

 

 

If you are trying to process attribute values of previous or subsequent features, "Multi Feature Attribute Support" option of the AttributeCreator might be simpler than Loop.

 

 

Takashi
View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, 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.

1 reply

takashi
Contributor
  • Best Answer
  • February 4, 2014
Hi,

 

 

If you are trying to process attribute values of previous or subsequent features, "Multi Feature Attribute Support" option of the AttributeCreator might be simpler than Loop.

 

 

Takashi

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