Transfer related

The transfer related EL expressions are derived from the use case where:

  • A LDAP user has an account template (template-routes) which is:
    • Subscribed to an Advanced Routing application - ba) and assigned:
      • Subscription folder - (/ba)
      • Business unit - (bu)
      • Account home folder - /home/vusers/bu/user
      • Account email address - usert@axway.int
      • LDAP domain - ad

The user logs in over HTTPS and uploads a file partner_certificate.crt in the subscription folder under its home folder.

The following table provides the transfer related EL expressions from the use case.

Agent Env Variable Routing EL expression Example
DXAGENT_CORE_ID transfer.coreId ${transfer.coreId eq "390bedec-c82e-45aa-afc2-1b78d846732d"}
DXAGENT_TARGETPATH transfer.targetDirFull ${parentFolder(transfer.targetDirFull) eq account.home}
DXAGENT_TRANSFERRED_BYTES transfer.
transferredBytes
${transfer.transferredBytes ge 20}
DXAGENT_TRANSFER_STATUS_START_TIME transfer.startTime ${transfer.startTime lt transfer.endTime}
DXAGENT_TIMESTAMP_INCOMING_END transfer.endTime ${transfer.endTime gt transfer.startTime}
DXAGENT_XFERTYPE transfer.xferType

${transfer.xferType eq "A"}

${transfer.xferType eq "I"}

DXAGENT_TARGETDIR transfer.targetDir ${concat(transfer.targetDir.substring(0,1), leadingFolder(session.workDir)) eq transfer.targetDir} - returns true
DXAGENT_FULLTARGET transfer.targetFull

${filename(transfer.targetFull).matches('part.*.crt')} - returns true

${extension(transfer.target) eq extension(filename(transfer.targetFull))} - returns true

DXAGENT_TARGET transfer.target

${transfer.target.matches('.*.crt') ? 1 : 0} - will return 1

${extract(basename(transfer.target),'_',1) eq 'partner1'} - will return true

${basename(transfer.target).replace('(.*)_(.*)', '$2_$1') eq 'certificate_partner')

The following table provides additional transfer related EL expressions.

Routing EL expressions Description
transfer.trigger

Determines the transfer trigger.

Values:

  • server_pull - If the routing was started by a server initiated pull.
  • client_download - If the routing was started by a client download.
  • client_upload - If the routing was started by a client upload.
transfer.status

Determines the transfer status.

Values:

success - If the routing was started by a success.

failure - If the routing was started by a failure.

temporary_failure - If the routing was started by a temporary failure.

Related topics:

Related Links