KB Article #180163

ADVANCED ROUTING: Condition triggers based on transfer properties (variables)

General information

Advanced Routing provides the possibility to trigger route(s) with conditions based on transfer properties. The following article provides examples with transfer attribute variables which can be used in a trigger condition.


The Condition field for a Route or a Route Template offers two options - "Always" ot "Expression Language". The examples in thie article are for the "Expression Language" option.


Examples

Trigger for non-zero bytes files

One very common use case is to trigger Route(s) for non-zero bytes files only. The variable, which holds the number of transferred bytes of a file is called: transfer.transferredBytes. The following expression can be used in the Condition field to trigger the Route when the transferred files are NOT 0 bytes in size:


${transfer.transferredBytes != '0'}


The following list includes other transfer.* variables which can be used in the Route trigger conditions:


transfer.targetDir
transfer.targetFull
transfer.target
transfer.targetDirFull
transfer.transferredBytes
transfer.startTime
transfer.endTime
transfer.xferType
transfer.status
transfer.trigger
transfer.rawsource
transfer.icap