When the agent is set to use MultiForwardingUDR input, it accepts input of the UDR type MultiForwardingUDR declared in the package FNT. The declaration follows:
Code Block | ||||
---|---|---|---|---|
| ||||
internal MultiForwardingUDR { // Entire file content byte[] content; // Target filename and directory FNTUDR fntSpecification; }; |
...
When the files are received they are written to temp files in the DR_TMP_DIR
directory situated in the root output folder. The files are moved to their final destination when an end batch message is received. A runtime error will occur if any of the fields have a null value or if the path is invalid on the target file system.
A UDR of the type MultiForwardingUDR which has a target filename that is not identical to its precedent is saved in a new output file.
Note |
---|
Note!After a target filename that is not identical to its precedent is saved, you cannot use the first filename again. For example: Saving filename B after saving filename A, prevents you from using A again. Instead, you should first save all the A filenames, then all the B filenames, and so forth. |
Archiving Example
Info | ||||||||
---|---|---|---|---|---|---|---|---|
title | Example - ArchivingThis example shows the APL code used in an Analysis agent connected to a forwarding agent expecting input of type MultiForwardingUDRs. In this example, the data is being buffered in the consume block. This makes it possible to route a complete batch to multiple files from the drain block. Note that the execution context needs available memory to buffer the whole file.
|
Local Archiving Example
Info | |||||||
---|---|---|---|---|---|---|---|
Example - Local ArchivingThis example shows the APL code used in an Analysis agent connected to a forwarding agent expecting input of type MultiForwardingUDRs.
The Analysis agent mentioned previous in the example will send two MultiForwardingUDRs to the forwarding agent. Two files with different contents will be placed in two separate sub folders in the root directory. |
...