Class CsvItemSourceHelper
java.lang.Object
de.xima.fc.workflow.itemlist.CsvItemSourceHelper
Helper methods for CSV item sources of the for each loop in the workflow.
- Since:
- 8.2.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic CsvFormatBuilds theCsvFormatfrom the given workflow node properties model.static CsvFormatBuilds theCsvFormatfrom the given workflow node properties model.static CsvFormatBuilds theCsvFormatfrom the given workflow node properties model.static StringbuildCsvFormatExampleString(AListItemSourceProps sourceProps) Sometimes, it is easier to understand the format by looking at an example.buildCsvFormatExampleValues(AListItemSourceProps sourceProps) Sometimes, it is easier to understand the format by looking at an example.static CsvFormat.BuilderCreates a builder for aCsvFormatands sets it up with the data from the given workflow node properties model.static CsvFormat.BuilderCreates a builder for aCsvFormatands sets it up with the data from the given workflow node properties model.static CsvFormat.BuilderCreates a builder for aCsvFormatands sets it up with the data from the given workflow node properties model.
-
Method Details
-
buildCsvFormat
Builds theCsvFormatfrom the given workflow node properties model.- Parameters:
props- The properties model.- Returns:
- The CSV format.
-
buildCsvFormat
Builds theCsvFormatfrom the given workflow node properties model.- Parameters:
props- The properties model.- Returns:
- The CSV format.
-
buildCsvFormat
Builds theCsvFormatfrom the given workflow node properties model.- Parameters:
props- The properties model.- Returns:
- The CSV format.
-
buildCsvFormatExampleString
Sometimes, it is easier to understand the format by looking at an example.When the type item list source
CHARACTER_SEPARATED_VALUESis selected: Gets a formatted string of values using the currently selectedformatsettings. When the string returned by this method is split into individual values using the current format settings, this results in the list ofexample values.- Returns:
- The list of
example values, formatted according to the given settings.
-
buildCsvFormatExampleValues
Sometimes, it is easier to understand the format by looking at an example.When the type item list source
CHARACTER_SEPARATED_VALUESis selected: Gets a list of example values. Theexample stringis the formatted string, this method returns the values obtained when splitting that formatted string according to the givenformatsettings.- Returns:
- A list of sample values for illustrating the currently selected format.
-
builderCsvFormat
Creates a builder for aCsvFormatands sets it up with the data from the given workflow node properties model. Can be used to customize the format further before building the format.- Parameters:
props- The properties model.- Returns:
- The CSV format builder.
-
builderCsvFormat
Creates a builder for aCsvFormatands sets it up with the data from the given workflow node properties model. Can be used to customize the format further before building the format.- Parameters:
props- The properties model.- Returns:
- The CSV format builder.
-
builderCsvFormat
public static CsvFormat.Builder builderCsvFormat(ListItemSourcePropsRowsOfCharacterSeparatedValues props) Creates a builder for aCsvFormatands sets it up with the data from the given workflow node properties model. Can be used to customize the format further before building the format.- Parameters:
props- The properties model.- Returns:
- The CSV format builder.
-