Session related EL expressions

The following table lists the session related variables along with their corresponding Agent environment variables, as well as EL expression examples:

Routing EL expression /
Agent Env Variable

Example usage

session.protocol

DXAGENT_PROTOCOL

${session.protocol eq 'http'} - will return true

session.workDir

DXAGENT_PWD=/

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

session.workDirFull

DXAGENT_PWD_RESOLVED

${session.workDirFull.substring(13,15) eq account.businessUnit.name} - returns true

session.remoteAddress

DXAGENT_REMOTEADDR

${session.remoteAddress eq session.remoteHost}

session.remoteHost

DXAGENT_REMOTEHOST

${session.remoteHost.matches('10.*')}

session.streamingClient

DXAGENT_CLIENT

${session.streamingClient eq 'httpd'}

${extract(session.streamingClient,'d',1) eq session.protocol}

session.isSSL

DXAGENT_SECURE_DATA

${session.isSSL}

${!session.isSSL}

session.transferDirection

DXAGENT_TYPE

The direction of the transfer configuration.

Values:

  • 0 indicates a transfer from an account to the application.
  • 1 indicates a transfer from the application to an account.

session.timestampOutgoingEnd

DXAGENT_TIMESTAMP_OUTGOING_END

${session.timestampOutgoingEnd} - the timestamp for events with outgoing type and trigger end.

session.logFileName

DXAGENT_LOGFILENAME

${session.logFileName} - the log file name. This will be used by runas utility on Unix to redirect stderr.

session.edgeId

DXAGENT_EDGEID

${session.edgeId} - the identifier of the current SecureTransport Edge. The Edge identification string is set in the protocol server's configuration file(s).

session.subscriptionFolder

DXAGENT_SUBSCRIPTION_FOLDER

${session.subscriptionFolder} - the subscription folder in the form of a POSIX-style path relative to the user home directory. This value represents the client path.

session.applicationType

DXAGENT_APPLICATION_TYPE

${session.applicationType} - a string that identifies application type.

session.applicationName

DXAGENT_APPLICATION_NAME

${session.applicationName} - the name of the application instance.

session.applicationNotes

DXAGENT_APPLICATION_NOTES

${session.applicationNotes} - notes associated with the application instance.

session.siteUploadFolder

DXAGENT_SITE_ATTR_UPLOAD_FOLDER

${session.siteUploadFolder} - the upload folder specifies the directory on the remote server where the uploaded files are placed.

session.siteUsername

DXAGENT_SITE_ATTR_USERNAME

${session.siteUsername} - the username presented to the remote server for authentication; optional Site attribute.

session.siteHost

DXAGENT_SITE_ATTR_HOST

${session.siteHost} - the remote host represented by the site. If absent, the site does not establish a connection to the remote host. An example of that is the Folder Monitor site.

Agent Env Variable Routing EL expression Example
DXAGENT_PROTOCOL session.protocol ${session.protocol eq 'http'} - will return true
DXAGENT_PWD=/ session.workDir ${concat(transfer.targetDir.substring(0,1), leadingFolder(session.workDir)) eq transfer.targetDir} - returns true
DXAGENT_PWD_RESOLVED session.workDirFull ${session.workDirFull.substring(13,15) eq account.businessUnit.name} - returns true
DXAGENT_REMOTEADDR ${session.remoteAddress eq session.remoteHost}
DXAGENT_REMOTEHOST session.remoteHost
DXAGENT_CLIENT session.streamingClient
DXAGENT_SECURE_DATA session.isSSL
DXAGENT_TYPE session.transferDirection
session.timestampOutgoingEnd
DXAGENT_LOGFILENAME session.logFileName
DXAGENT_EDGEID session.edgeId
DXAGENT_SUBSCRIPTION_FOLDER session.subscriptionFolder
DXAGENT_APPLICATION_TYPE session.applicationType ${session.applicationType} - a string that identifies application type.
DXAGENT_APPLICATION_NAME session.applicationName ${session.applicationName} - the name of the application instance.
DXAGENT_APPLICATION_NOTES session.applicationNotes ${session.applicationNotes} - notes associated with the application instance.
DXAGENT_SITE_ATTR_UPLOAD_FOLDER session.siteUploadFolder ${session.siteUploadFolder}- the upload folder specifies the directory on the remote server where the uploaded files are placed.
DXAGENT_SITE_ATTR_USERNAME session.siteUsername ${session.siteUsername} - the username presented to the remote server for authentication; optional Site attribute.
DXAGENT_SITE_ATTR_HOST session.siteHost ${session.siteHost} - the remote host represented by the site. If absent, the site does not establish a connection to the remote host. An example of that is the Folder Monitor site.

Related topics:

Related Links