bufferSize
|
Number
|
8192
|
Size of the buffer writer.
|
deferred
|
Boolean
|
false
|
When set to true, DataWeave generates the output as a data stream, and the script’s execution is deferred until it is consumed.
Valid values are true or false.
|
encoding
|
String
|
null
|
Encoding to be used by this writer,
such as UTF-8.
|
enforceRequires
|
Boolean
|
false
|
Error if a required value is missing.
Valid values are true or false.
|
missingValues
|
String
|
NULLS for copybook schema, SPACES otherwise
|
Fill character used to represent missing values. To activate a non-default setting, use useMissCharAsDefaultForFill, and use one of the following values to missingValues:
-
NONE: Write nothing for missing values.
-
SPACES: Fill the field with spaces.
-
ZEROES: Fill numeric fields with 0 characters and character fields with space characters.
-
NULLS: Fill the field with 0 bytes.
|
notTruncateDependingOnSubjectNotPresent
|
Boolean
|
false
|
Fills the entire group when the DEPENDING ON subject is not present. Introduced in DataWeave 2.3 with the August 2021 release of Mule 4.3.0-20210622.
|
recordTerminator
|
String
|
System property line.separator |
Record separator line break. Valid values:
Note that in Mule versions 4.0.4 and later, this is only used as a separator
when there are multiple records. Values translate directly to character codes.
(none leaves no termination on each record).
|
retainEmptyStringFieldsOnParsing
|
Boolean
|
false
|
When set to true, this property makes the reader retain fields that lack values and set their values to an empty string. The default behavior of the reader is to remove those fields. Introduced in the January 2023 version of DataWeave 2.4 for Mule version 4.4.0-20230102.
|
schemaPath (Required)
|
String
|
null
|
Schema definition. Path where the schema file
to be used is located.
|
segmentIdent
|
String
|
null
|
Segment identifier in the schema for fixed width or copybook schemas (only needed when writing a single segment/record definition, and if the schema includes multiple segment definitions).
|
structureIdent
|
String
|
null
|
Structure identifier in schema for flatfile schemas (only needed when writing a structure definition and if the schema includes multiple structure definitions)
|
trimValues
|
Boolean
|
false
|
Trim string values longer than the field length by truncating trailing characters. Valid values are true or false.
|
trimValues
|
Boolean
|
false
|
Indicates whether trim values are longer than the field width. Valid Options are true or false.
|
truncateDependingOn
|
Boolean
|
false
|
Truncate COBOL copybook DEPENDING ON values to the length used. Valid values are true or false.
|
useMissCharAsDefaultForFill
|
Boolean
|
false
|
By default, the flat file reader and writer use spaces for missing characters and ignore the setting of the missingValues property. When you set this property to true, the writer honors the setting of the missingValues property. Introduced in DataWeave 2.3 (2.3.0-20210823) for the September 2021 release of Mule 4.3.0-20210823.
|
zonedDecimalStrict
|
Boolean
|
false
|
Use the strict ASCII form of
sign encoding for COBOL copybook zoned decimal values. Valid values are true or
false.
|