Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

The MultiForwardingUDR is used by file based forwarding agents to dynamically define the output file names.

When a MultiForwardingUDR is used, the Filename Template (FNT) is replaced as Input Type. See for example Disk Forwarding Agent(3.0) for how to define Input Type. See also the Filename Template Tab section in Workflow Template.

This functionality is the same for several batch forwarding agents, such as FTP, HDFS, Archiving, and Amazon S3.

Usually, binary data is sent to the agent and an output file is specified in the Input Type field of the Filename Template tab of the agent. However, filename information can also be selected from a MultiForwardingUDR, which contains both data and name.

Select between:

  1. bytearray - Sends binary data to the agent. An output file is created according to the configuration in the Filename Template tab.
  2. MultiForwardingUDR - If set, information in Filename Template tab is ignored. Instead, data and information about file name is received from the MultiForwardingUDR.

A MultiForwardingUDR file name is created using the FNTUDR Functions(3.0). The data is set directly in a field called "content" in the UDR. See also the examples for the relevant agents, such as FTPS Forwarding Agent MultiForwardingUDR Example(3.0).

Configuration of Agents

When an agent is set to use MultiForwardingUDR input, it accepts input of the UDR type MultiForwardingUDR declared in the FNT folder. The declaration follows:

internal MultiForwardingUDR
{ // Entire file content 
 byte[] content; // Target filename and directory 
 FNTUDR fntSpecification; 
};

The content of the MultiForwardingUDR is stored at the path that you have set in the fntSpecification field. Use the APL functions fntAddString and fntAddDirDelimiter to set the value of this field. For further information about these functions, see FNTUDR Functions(3.0).

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 occurs 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!

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.

Non-existing directories are created if the check box Create Non-Existing Directories is selected in the Filename Template tab. If it is empty, a runtime error occurs if there is an unknown directory in the FNTUDR of an incoming MultiForwardingUDR.

Bytearray input is ignored when MultiForwardingUDRs are the expected configuration options in the Filename Template

The MultiForwardingUDR is used by file based forwarding agents to dynamically define the output file names.

When a MultiForwardingUDR is used, the Filename Template (FNT) is replaced as Input Type. See for example Disk Forwarding Agent(3.0) for how to define Input Type. See also the Filename Template Tab section in Workflow Template.

This functionality is the same for several batch forwarding agents, such as FTP, HDFS, Archiving, and Amazon S3.

Usually, binary data is sent to the agent and an output file is specified in the Input Type field of the Filename Template tab of the agent. However, filename information can also be selected from a MultiForwardingUDR, which contains both data and name.

Select between:

  1. bytearray - Sends binary data to the agent. An output file is created according to the configuration in the Filename Template tab.
  2. MultiForwardingUDR - If set, information in Filename Template tab is ignored. Instead, data and information about file name is received from the MultiForwardingUDR.

A MultiForwardingUDR file name is created using the FNTUDR Functions(3.0). The data is set directly in a field called "content" in the UDR. See also the examples for the relevant agents, such as FTPS Forwarding Agent MultiForwardingUDR Example(3.0).

Configuration of Agents

When an agent is set to use MultiForwardingUDR input, it accepts input of the UDR type MultiForwardingUDR declared in the FNT folder. The declaration follows:

internal MultiForwardingUDR
{ // Entire file content 
 byte[] content; // Target filename and directory 
 FNTUDR fntSpecification; 
};

The content of the MultiForwardingUDR is stored at the path that you have set in the fntSpecification field. Use the APL functions fntAddString and fntAddDirDelimiter to set the value of this field. For further information about these functions, see FNTUDR Functions(3.0).

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 occurs 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!

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.

Non-existing directories are created if the check box Create Non-Existing Directories is selected in the Filename Template tab. If it is empty, a runtime error occurs if there is an unknown directory in the FNTUDR of an incoming MultiForwardingUDR.

Bytearray input is ignored when MultiForwardingUDRs are the expected configuration options in the Filename Template

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.