Live File Processor Agent Type – Composite String

<< Click to Display Table of Contents >>

Navigation:  Live > Agents > File Agents > File Processor > Settings > Type >

Live File Processor Agent Type – Composite String

A composite string is a string that can contain one or more substituted variable values.

 

Example: {fileNameWithoutExtension}-{utcNow:yyyyMMddTHHmm}-{ebatch}.{fileExtension}

 

The following setting types are composite strings:

archiveFileName

archiveFilePath

ebatchEddFile

ebatchEddType

errorFileName

errorFilePath

liveDataSourceGet

liveDataSourceSet

loggerDescPrefix

 

Composite strings can contain one or more of the following (case-insensitive) variables, enclosed in curly brackets {  }:

 

Substring

Type

Description

computerName

String


ebatch

Integer

 

fileExtension

String

e.g., csv (without the dot)

fileLastWriteTime

DateTime

 

fileLastWriteTimeUtc

DateTime

 

fileNameWithExtension

String

 

fileNameWithoutExtension

String

 

folderWatcherPath

String

e.g., C:\EarthSoft\Live\HOBO

now

DateTime

 

processor

String

e.g., HOBO

utcNow

DateTime

 

 

Non-string variables can have a format. For example, DateTime variables can be formatted using a custom date and time format string (e.g., yyyyMMddTHHmm in the example above).

 

A variable can also have Regex Replacements, like EBatch Example 2.

 

Note: Not all variables are available for all settings. For example, ebatch is not available for errorFileName because a file that cannot be processed does not have an ebatch number.