Wiki source code of Prozessprotokoll als PDF


Hide last authors
Nils Schweigert 8.1 1 {{version major="7" minor="2" /}} This workflow action is availible in {{formcycle/}} version 7.2.0 and upwards.
Nils Schweigert 1.1 2
Nils Schweigert 8.1 3 {{figure image="processHistoryPdf_en.png" width="400" clear="h1"}}
4 Configuration menu for the action //Process log as PDF//.
Nils Schweigert 1.1 5 {{/figure}}
6
Nils Schweigert 8.1 7 {{figure image="processHistoryPdfDemo_en.png" width="400" clear="h1"}}
8 Example file content generated by the //Process log as PDF// workflow action.
Nils Schweigert 1.1 9 {{/figure}}
10
Nils Schweigert 8.1 11 The workflow action //Process log as PDF// allows you to generate a PDF file with the current log of the process.
Nils Schweigert 1.1 12
13 == Paramerter ==
14
Nils Schweigert 8.1 15 === Storage options for the created files ===
Nils Schweigert 1.1 16
Nils Schweigert 8.1 17 ; Name of the output file
18 : The name of the file to be generated. Please consider that the file extionsion //.pdf// has to be used for the file to be generated.
19 ; Attach file to form record
20 : If this option is selected, files created in this action will be attached to the form record. Otherwise, they are only available for other actions within the workflow processing in the same processing chain.
Nils Schweigert 1.1 21
Nils Schweigert 8.1 22 == Action variables ==
Nils Schweigert 1.1 23
Nils Schweigert 8.1 24 Actions of type //Process log as PDF// provide [[Action variables>>Formcycle.UserInterface.Variables||anchor="HActionvariables"]] which can be used in subsequent actions.
Nils Schweigert 1.1 25
Nils Schweigert 8.1 26 === Standard action variables ===
Nils Schweigert 1.1 27
Nils Schweigert 8.1 28 ; [%$<action name>.SUCCESS%]
29 : Return whether action was successfully executed. Returns Boolean (true/false).
30 ; [%$<action name>.RESULT%]
31 : Return all results provided by the action in structured form.
Nils Schweigert 1.1 32
Nils Schweigert 8.1 33 ; [%$<action name>.ERROR_CODE%]
34 : The error code thrown in case of an error in the action. Empty if no error occurred.
35 ; [%$<action name>.ERROR_MESSAGE%]
36 : The thrown error message in the action's error case. Empty if no error occurred.
Nils Schweigert 1.1 37
Nils Schweigert 8.1 38 === Action specific variables ===
Nils Schweigert 1.1 39
Nils Schweigert 8.1 40 ; [%$<action name>.RESULT.fileSize%]
41 : The size of the generated PDF file in bytes.
42 ; [%$<action name>.ERROR.message%]
43 : Error message, that is returned if the pdf file could not be written into the file system.