get number of attached files of workflow()

This function returns the number of files attached to the workflow job a.

The search result can be restricted with the file name pattern b.

If the workflow job a or the file(s) specified in b cannot be found, the result of the function is 0.

Parameters


Parameter

Description

a

Name (see VAR_SYS_WF_DISPLAYNAME) or ID (see VAR_SYS_WF_ID) of the workflow job.

b

(optional) File name pattern to restrict the files found. Multiple file patterns separated by the pipe character (|) can be entered (e.g. *.txt|*.csv). Regular expressions with the prefix regex: are also allowed. See example below.

Example


Let's assume the workflow job named MyWorkflow 1628490814713 has the two files myfile_1.txt and myfile_2.txt attached to it.


Parameter a

Parameter b

Result

MyWorkflow 1628490814713


2

MyWorkflow 1628490814713

*2.txt

1

MyWorkflow 1628490814713

*2.txt|*1.txt

2

MyWorkflow 1628490814713

regex:.*txt

2