Why does an empty bundle not terminate the scenario?


I’ve just learned that a scenario will continue even when a module returns an empty bundle. I previously understood that, essentially, a bundle causes the rest of the scenario to repeat for each bundle item, but that no longer seems to fit reality. The rest of my scenario is heavily tied to individual bundle items. Is this not the way bundles are meant to be used? What’s a use case for continuing the scenario with an empty bundle?

You can simply add a filter after the module to check if your required fields exist.

Continuing a scenario if a bundle is empty has its own uses, for example, with aggregators. Sometimes you can aggregate an empty array/string for a field that could be empty, but other data could still be used from other modules for mapping.