Payroll Export XML tag reference
The entire export definition is contained in a single XML document, which includes data source definitions, processing/mapping directives, and the layout definition. These definitions are the XML definition tag reference set:
Main XML document tags
<payroll_export>
- Definition
- Defines the payroll export interface.
- Attributes
-
plug-in
: The plug-in classname of the custom Java class to implement. This custom class must extend the standard package.com.workbrain.app.export.payroll.Note: Specifycom.workbrain.app.export.payroll.basic.BasicPayrollExportPlugin
unless you are using a custom plug-in. - Inner Tags
-
<data>
(required)
Data selection tags
<data>
- Definition
- Contains a set of field tags.
- Attributes
- None
- Inner Tags
-
<field>
<field>
- Definition
- Defines a data field to be used in export.
- Attributes
-
name
: The field name (required). - Inner Tags
- None
<dummy_field>
- Definition
- Defines the dummy field to be used in export. This field is initially empty, but can be later mapped with data.
- Attributes
-
name
: The field name. Any unique name is sufficient (required). - Inner Tags
- None
<summary_field>
- Definition
- Defines a summary field, which aggregates data from another field for each row of output.
- Attributes
-
name
: The field name. Any unique name is sufficient (required). - Inner Tags
- None
Data processing tags
<logic>
- Definition
- This block contains data processing directives, such as how to modify rows that are generated by the query. All the directives are processed in the order that is defined for each query row.
- Attributes
-
group
: The type of data group to perform after logic processing. Valid values are employee_and_date_and_earn_code and employee_and_earn_code. Default is no grouping. - Inner Tags
-
<match_output>
<match_output>
- Definition
- Specifies a match condition and outputs the row if the condition
is satisfied. When a match is found, no other
<match_output>
tags are evaluated. - Attributes
-
last_match
: If set to true and the row satisfies all math conditions, no further processing is applied to this record after this match. Valid values are true and false. Default value is false. - Inner Tags
-
<match>
<match>
- Definition
- Defines a condition for row evaluation
- Attributes
-
field
: The field name to be evaluated. - Inner Tags
-
<value>
: The<value>
tag is an alternative to the value attribute. If more than one value is provided, the default operator is set to "in". The null keyword can also be used in the<value>
tag.For example:
<value>null</value>
<output_row>
- Definition
- Defines a new output row inside the
<match_output>
tag. This is referred to as record splitting. The same record is outputted as many times as the number of<output_row>
tags. - Attributes
- None
- Inner Tags
-
<map>
: Defines a mapping through which the row is processed.
<map>
- Definition
- Defines a row modification.
- Attributes
-
field
: The name of the field to be modified (required). - Inner Tags
-
<decode>
: Defines a key-value decode pair for this mapping.
<decode>
- Definition
- Defines a key-value decode pair.
- Attributes
-
key
: The value to compare to the mapped field value (required). - Inner Tags
- None
Data formatting tags
<format>
- Definition
- This block contains data formatting directives on how the export file is displayed.
- Attributes
- None
- Inner Tags
-
<header>
(optional)
<header>
- Definition
- Defines an export or an export group header. The directives within this tag are processed once per export or export group.
- Attributes
- None
- Inner Tags
- See Layout tags.
<body>
- Definition
- This block contains layout directives, which are processed once
per row of data. There must be only one
<body>
tag in the innermost group tag or in the format if there are no groups defined. - Attributes
- None
- Inner Tags
- See Layout tags.
<footer>
- Definition
- Defines an export or an export group footer. The directives in this block are processed once per export or export group.
- Attributes
- None
- Inner Tags
- See Layout tags.
Layout tags
<constant>
- Definition
- The body within this tag is outputted as is.
- Attributes
-
pad_left
: Specifies the length that the value is padded to the left (integer). - Inner Tags
- None
<new_line>
- Definition
- Specifies a new line to be inserted in the output.
- Attributes
-
CR
: CR='false' does not include the carriage return character. Instead, a line feed is used in the output. - Inner Tags
- None
<tab>
- Definition
- Specifies a tab to be inserted in the output.
- Attributes
- None
- Inner Tags
- None
<string>
- Definition
- Defines a character-based field in the output.
- Attributes
-
field
: Specifies the name of the field (required). - Inner Tags
- None
<number>
- Definition
- Defines a numeric-based field in the output.
- Attributes
-
field
: Specifies the name of the field (required). - Inner Tags
- None
<datetime>
- Definition
- Defines a datetime-based field in the output.
- Attributes
-
field
: Specifies the field name (required). Note that PERIOD_START_DATE and PERIOD_END_DATE refer to the pay period that was exported, while CURRENT_TIMESTAMP refers to the payroll export procedure start timestamp. - Inner Tags
- None