place names of attached workflow files into list()
This function stores the names of the files of workflow job a in list b.
The return value of the function is the number of names written to the list. If no list name b is specified or the workflow job a cannot be found, the return value is "0".
Parameters
Parameter |
Description |
a |
Name (see VAR_SYS_WF_DISPLAYNAME) or ID (see VAR_SYS_WF_ID) of the workflow job. |
b |
Name of the list into which the names of all files of workflow job a are to be written. Important note: The list is cleared before that. |
c |
(optional) File name pattern to restrict the files found. Multiple file name patterns separated by the pipe character (|) can be entered (e.g. *.txt|*.csv). Regular expressions with prefix regex: are also allowed. See example below. |
Example
Let's assume the workflow job MyWorkflow 1628569620890 has the two files myfile_1.txt and myfile_2.txt attached.
Parameter a |
Parameter b |
Parameter c |
Result |
MyWorkflow 1628569620890 |
mylist |
|
2 (and the list mylist contains the values myfile_1.txt and myfile_2.txt) |
MyWorkflow 1628569620890 |
mylist |
*1.txt |
1 (and the list mylist contains the value myfile_1.txt) |
MyWorkflow 1628569620890 |
mylist |
*2.txt|*1.txt |
2 (and the list mylist contains the values myfile_1.txt and myfile_2.txt) |
MyWorkflow 1628569620890 |
mylist |
regex:.*txt |
2 (and the list mylist contains the values myfile_1.txt and myfile_2.txt) |