Wiki source code of Stack
Version 13.1 by Outhman Moustaghfir on 2024/09/09 11:47
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | = Introduction = | ||
2 | |||
3 | The Stack connector is designed to maintain a stack variable containing a list of input files for iterative processing using the 'Loop' connector. | ||
4 | |||
5 | [[image:1721395923573-587.png]] | ||
6 | |||
7 | |||
8 | = Params = | ||
9 | |||
10 | [[image:1721396080125-263.png]] | ||
11 | |||
12 | The connector accepts 2 params : | ||
13 | |||
14 | * Variable name : that will be referred to inside the [[Loop connector>>doc:iXPath V3.Connectors.Scenario.Loop.WebHome]] | ||
15 | * Append : a checkbox, If checked, the files will be added to the end of the stack. Otherwise, they will be prepended. | ||
16 | |||
17 | = Use = | ||
18 | |||
19 | The 'Stack' must be combined with a 'Loop' connector to make it useful, depending on each use case. | ||
20 | |||
21 | ====== Example: ====== | ||
22 | |||
23 | [[image:1721397744988-575.png]] | ||
24 | |||
25 | |||
26 | we set a variable named 'var', and put the loaded files from 'LoadFile2' as value. | ||
27 | |||
28 | [[image:1721397807760-234.png]] | ||
29 | |||
30 | |||
31 | then, we retrieve this variable using the 'Loop' connector, and iterate over the set, and make a limit of iterations as 20. | ||
32 | |||
33 | |||
34 | [[image:1721397783048-170.png]] | ||
35 | |||
36 | |||
37 | 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. | ||
38 | |||
39 | [[image:1721397954578-243.png]] | ||
40 | \\ | ||
41 | |||
42 | an example of session : | ||
43 | |||
44 | [[image:2024-07-19_15h08_49.png]] |