Add to Iterator Object - Refresh Needed?

0
Hi – if I add to an iterator object, I find my microflow has to execute twice to recognize the added object. Example: iterator object runs through iteration 1 and during that iteration, adds a member to the iterator object. The new member that was added to the iterator object requires the microflow be run a second time to be recognized. Is there any way I can REFRESH the iterator object so that the microflow recognizes when new iterator members have been added? Otherwise I will have to execute the microflow a second time. (I’m adding to the iterator object during the loop of the iterator object) – I see https://community.mendix.com/link/questions/86150 which says the iterator object is cached. … Any way around this to refresh it?
asked
1 answers
1

It seems like you are trying to iterate over a structure that is not a simple list. You might want to consider the visitor pattern
https://en.wikipedia.org/wiki/Visitor_pattern . There is an example in Mendix in this blog post  https://blog.mansystems.com/low-code/mendix-design-patterns

answered