Write File Variables
This workflow task writes workflow variables to a target file. You can specify which properties should be written using expressions, and also the data format parameters (see File variable strategy). There are two implementations available:
-
Write property file: Writes values to the target file in property file format, that is as
<code>key=value</code>
(key-value pairs).For more information about how target files are parsed, see the Java documentation about the Properties
class. -
Write whole file: Writes single value to the target file.
Properties
Name | Type | Description |
---|---|---|
Target File |
mandatory |
The file the variables are written to. |
Encoding |
mandatory |
Encoding used in the target file. The possible encodings are all encodings supported by the target Java platform. Some commonly used encodings are: ISO-8859-1, ISO-8859-2, and UTF-8. |
Data format parameters |
optional |
Default data format parameters for the correct formatting of data in the source file. For more information, see Data format parameters. |
File variable strategy
Name | Type | Description |
---|---|---|
Implementation |
mandatory |
Type of file variable strategy. Write property file or Write whole file. |
Variables
Write property file
Example configuration
Name | Type | Description |
---|---|---|
Name |
mandatory |
Name of the variable. |
Expression |
mandatory |
Expression provided is evaluated and the result is written to the target file. |
Write whole file
Example configuration
Name | Type | Description | ||
---|---|---|---|---|
Expression |
mandatory |
Expression provided is evaluated and the result is written to the target file. To write multiple lines, concatenate lines with line-ending characters, for example:
|
Data format parameters
Name | Type | Description |
---|---|---|
Array separator |
optional |
Defines which character is used as the array separator. |
Date format local |
optional |
Defines the locale for parsing non-numerical data (for example, short forms of months in dates, such as Sep 18, 1999). The value is the same as the value of the corresponding locale in Java (see Java locales). |
Datetime format |
optional |
Defines the format that should be used for processing |
Day format |
optional |
Defines the format that should be used for processing |
Decimal separator |
optional |
Defines which character is used as the decimal separator. Escaped string property. |
False value |
optional |
String value representing a logical |
Thousand separator |
optional |
Defines the string that represents the thousands separator (used in numbers). A non-escaped character is expected. Numbers do not need to contain this separator, but when the separator is present, it is processed (stripped) accordingly. Escaped string property. Default value: |
True value |
optional |
String value representing a logical |
Was this page useful?