Introduction to iterators

Last update: 2024-02-12
  • Created for:
  • Beginner
    User

In this video, you will learn:

  • How iteration and aggregation are used
  • The different types of iterators
 Transcript

We’re now going to learn about iteration and aggregation when working with multiple bundles of information in our scenario. In legacy Fusion we used “for each” cards as our iterators, but they were much more difficult to maintain and use. In the new Fusion system, our iterators can accomplish the same thing more efficiently, and our execution history allows for better and easier ongoing management. In our Universal Connector And Router walkthrough exercise, we learned about using an array, and pulling information from within it. An iterator is going to take an array from our scenario as an input and produce multiple bundles as the output, a single bundle for each item in the array. Then each bundle of information is passed through our scenario and processed by every subsequent module, until it eventually runs into an aggregator, if created.

There are a couple different types of iterators to be aware of. The first is your standard iterator. It’s set up by creating a module which points to an array, or you can manually enter a simple array of values.

We then have the Repeater module, which you can set up to automatically produce X number of bundles, depending on how you structure it. Finally, we have any sort of search module from any app in your system. The search module will produce more than one record, because it’s going into a system and searching for anything that applied to the search criteria, and if no search criteria apply, it will return all related records. -

On this page