CSVHandler

Description

The CVS ActionHandler allows variables from a process to be written to a CSV file/table. They may then be attached or saved.


Class

com.dooris.bpm.actionhandler.CSVHandler

 

Parameter

Parameter 

Default value

Description

Valid examples

Parameter 

Default value

Description

Valid examples

filePath

 

Describes where the file should be stored. This may be either a relative or an absolute path.

The file will only be saved if the parameter saveFile is set to true.

 

fileName

 

Specifying the name of the file to be attached/saved. It can be entered directly or as a variable. For this, the value must look like this: $ {VARIABLE}.

${processInstanceName}

parameter

 

Names of the variables to be included in the table. The variables are separated by commas. Every variable is written to a new column.

variable1,variable2,variable3

heading

 

Names of the headings or the first row in the table. As with the parameter, these are also separated by commas.

Überschriftspalte1,Überschriftspalte2,Überschriftspalte3

fieldHeadings

false

Boolean (true/false). When set to false, the values are taken directly from the heading. If set to true, the values are considered as process variables and translated.

Note the parameter fieldHeadings: if false, the information is used directly as a header, if true, the information is seen as a process variable and retrieved from the database.

false

repeatLines

false

Boolean (true/false).If repeatLines is set as false, then the variables being passed by parameter are searched for directly and written to a row in the file.

If repeatLines is set as true, the parameters will be searched for multiple times, in accordance with the following pattern: variable1[0];variable2[0];variable3[0]. Square brackets with a number are attached to the passed parameter (for example see domrepeater linkcomingsoon). The number in the brackets is incrementally increased until no more suitable variables are found.

All variables with the same index are displayed in the same new line.

Neither the bracket nor the index contained in the bracket has to be passed by parameter. Only the variable name is needed.

false

attachCSV

true 

If false, the file will not be attached to the process instance. If true, it will be attached to the instance, with the specified name. This can then, for example, be attached to an email.

true

saveFile

true

If false, the file is not saved. If true, the file is saved to the specified path, with the specified name.

false