Scenario - Stack

Page / - last modified by Outhman Moustaghfir on 2024/09/09 11:50

Stack

last modified by Outhman Moustaghfir

on 2024/09/09 11:50

Table of Contents

Introduction

Params

Use

Introduction

The Stack connector is designed to maintain a stack variable containing a list of input files for iterative processing using the 'Loop' connector.

Params

The connector accepts 4 params :

Variable name : that will be referred to inside the Loop connector

Append : a checkbox, If checked, the files will be added to the end of the stack. Otherwise, they will be prepended.

Stack in variable : Select this option to stack the files into a variable. Otherwise, the files will not be added.

Return variable : When selected, the files stacked into the variable will serve as the output file for the connector. If not, the input file will be used as the output.

Use

The 'Stack' must be combined with a 'Loop' connector to make it useful, depending on each use case.

Example:

we set a variable named 'var', and put the loaded files from 'LoadFile2' as value.

then, we retrieve this variable using the 'Loop' connector, and iterate over the set, and make a limit of iterations as 20.

inside every iteration we add a new file coming from the 'XMLToXML1'. and we chose to append ie add files at the end of the array.

an example of session :