Document Comparison
This adapter compares a repository file with an input file and outputs a status value as process result.
Properties
Operation | Defines the operation executed by the function adapter Possible values: |
Parameters
Adapter | Main adapter class (do not change!) Possible values: de.softproject.integration.adapter.comparison.X4ComparisonAdapter: Main class (default) |
comparisonMethod | Comparison method Possible values:
|
expectedResult | Path to the file to be compared with the adapter input; Relates to the comparison methods Possible values: Repository path, e. g. |
ignoreWhitespace | Determines whether whitespaces will be considered while comparing file contents; Relates to the comparison methods Possible values:
|
normalizeWhitespace | Determines whether whitespaces in Possible values:
|
ignoreComments | Determines whether comments within the XML document are considered while comparing file contents; Relates to the comparison method Possible values:
|
compareSimilar | Determines whether the order of tags within the XML document is considered while comparing file contents, e. g. if the XML document's content is the same but in another order; Relates to the comparison method Possible values:
|
ignoreCDataAndTextDiff | Determines whether the content within the Possible values:
|
Input
The adapter expects as input any file, which is compared with a specified Repository file.
Output
The adapter outputs one of the following status values as process result:
1 | The compared documents are identical |
0 | The compared documents are different |
-1 | The documents could not be compared with each other, since the input was either empty, not well formed or false. |