Introduction

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

1721395923573-587.png

Params

1725875276680-139.png

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:

1721397744988-575.png

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

1721397807760-234.png

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

1721397783048-170.png

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. 

1721397954578-243.png

 

an example of session : 

2024-07-19_15h08_49.png

Tags:
    
This wiki is hosted and managed by iXPath
Powered by XWiki 13.3 debian