FixValueUnit

Class name

com.ebd.hub.datawizard.iu.FixValueUnit


This Integration Unit makes it possible to generate a file format similar to the "Fix record" output format from the data of the target tree or from a parameter value (but it is not identical).

If the "Use mapped data parameter" is set to "true", the data of the target tree is set one after the other. However, instead of the field length, only the relevant values are taken into account. It is therefore somewhere between Fix record length and CSV. You can also think of it as a CSV format in which all field separators have been removed.

If the "Use mapped data" parameter is set to "false", the value of the "Fix value" parameter is output. As variable resolution in the form VAR_NAME is also supported here, you can output any values as target data that were previously assigned to this variable in the mapping.

If the "Decode Base64" (only if no mapped data is used) parameter is also set to "true", a Base64-encoded value is expected as the fixed value or as the resolved variable value and this is decoded. The result can be a binary file, for example, which is to be sent via a response path, e.g. as a PDF. In the case of a binary file, however, the RawFixValueUnit is recommended instead.

Parameters


Parameter name

Allowed values

Default value

Description

Decode Base64 (only if no mapped data is used)

true, false

false

If true, a Base64-encoded value is expected in parameter Fix value.

Fix value


ok

Value that is used as output data, if parameter Use mapped data is false. Variables of the form @MYVAR@ will be resolved.

Use mapped data

true, false

false

If true, the values of the target fields are used, otherwise, the value specified in parameter Fix value.