Skip to main content
Solved

Variable Persistence in Looping Custom Transformers

  • February 4, 2014
  • 1 reply
  • 18 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
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, 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
Celebrity
  • 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