...
Description
Dieser This ActionHandler transformiert ein transforms an Excel(.xlsx) -Dokument in ein oder mehrere CSV-Dokumente, abhängig von der Anzahl der Blätter im Excel-Dokument. Das Excel-Dokument muss an die Prozessinstanz angehängt werden und die generierten Dateien werden ebenfalls an diese angehängt. Wenn das Excel-Dokument nur ein Blatt enthält, erbt das generierte Dokument seinen Namen, andernfalls wird jedes CSV-Dokument wie das Blatt benannt, das es darstellt.
...
document into one or more CSV documents, depending on the number of sheets in the Excel document. The Excel document has to be attached to the process-instance and the generated files will also be attached to it. If the Excel document contains only one sheet, the generated document will inherit its name, otherwise, each CSV document will be named like the sheet it represents.
...
Class
Code Block |
---|
com.dooris.bpm.actionhandler.Excel2CSVHandler |
Ereignistyp
...
Name der Aktion
beliebiger Name
...
Parameter
Parameter |
---|
Description |
---|
Valid examples |
---|
FileName
| This parameter is used to set the name of the document, including the (.xlsx)-doctype. |
|
|
Zum Beispiel
This parameter is used to set a prefix, which will be merged with the beginning of the csv-document's name. Process-variables can also be used.
|
|
|
Zum Beispiel
This parameter is used to set a suffix, which will be merged with the end of the csv-document's name. Process-variables can also be used.
|
|
Example:
We have a simple use case for this actionhandler. We have implemented the excel2CSVhandler on the task exceltoCSV as follows:
Parameter | Valid examples |
---|---|
|
|
|
|
|
|
When we open the process instance, we will upload the Excel document via the Documents section.
...
We will upload the Excel file via the Upload file(s) button.
...
You can see that the Excel document is now reachable through the process instance.
...
The actionhandler will be executed once the process instance is started. You can see that, the Excel file which has two sheets now converted to two csv files.
...
You can reach the original file and the created files under the Documents section.
...