Answered

Gateway condition on a File

Hello,

i've tried to create a condition on a gateway to check if the file contains some uploaded files.

Condition: reportFile is not empty

When i execute that condition i get the error: Specified cast is not valid.

What's wrong with my condition? A file is a list and this list could be empty?!

Comments (3)

photo
1

Dear Dirk,

Each File-type attribute can hold a collection of files. If you want to know how many uploaded files are associated to a single attribute, the best way to do so is by using the size property.

You can validate it through an expression into the form. Please follow this article to understand much better and use the size property: http://help.bizagi.com/bpm-suite/en/index.html?count_the_number_of_uploaded_f.htm

advancefilesmanagement7

Regards

photo
1

Dear Juan,

is it possible to use the size property in an Visible-Form Expression?

The Dialog doesn't seem to be the same...

Regards

photo
1

Dear Dirk,

Yes, it is possible. please check the following screenshot:

dfa7dd8fd4bab0721009c5d241802c48

Regards