MultiLineOutputWrapper

MultiLineOutputWrapper

If you used abankmark.pdgf.generator.For or a similar construct generating an List<Object> of values per field and row, this output will split and replicate this single line into multiple lines.
Example: Original Line:
{1,2,{A,B,C},3,{D,E,F}}
will result in:
{1,2,A,3,D}
{1,2,B,3,E}
{1,2,B,3,F}

Attributes
Name Description Required Min Max Allowed Values
name (Class)Name of this element. Used to identify plugin Class. Full name is required. Example: com.en.myPluginPackage.myPuginClass yes 1 1
active Boolean flag if this output is active/used no 0 1
  • true
  • false
  • 0
  • 1
id Identification String of this element. May be used to uniquely identify a field within the children of an Element. no 0 1
Nodes
Name Description Required Min Max Allowed Values
multilineFieldId Content type: Integer
Sets the field from which the number of lines to extract is determined. The specified field MUST contain a list. Example: If this is set to '2', then the third field (fieldID is an array index, so starting at 0) must contain a list. If that list has a length of '42', then the generator uses that value to iterate over all other lists it might encounter. When writing out the generated data, the logic is follows:

If a field does not contain a list, the value is printed out in each of the 42 lines.
If a field contains a list, the current list item is printed out (so in the first line, list index 0 is printed, in the second line index 1, and so on).

The user must make sure that ALL lists within one line of the data generator's output have the same length.If it contains a longer list than the specified multilineFieldId list, trailing elements will be ignored. If it contains a shorter list, an error will occur if this generator tries to access the missing elements.
yes 1 1
output Specifies the output plugin and its configuration to be used for output of generated value. Required child nodes are specified by the plugin. yes 1 1
2.7-83fb0 | 2020-04-22