Wiki source code of Prozessprotokoll als PDF


Show last authors
1 {{version major="7" minor="2" /}} This workflow action is availible in {{formcycle/}} version 7.2.0 and upwards.
2
3 {{figure image="processHistoryPdf_en.png" width="400" clear="h1"}}
4 Configuration menu for the action //Process log as PDF//.
5 {{/figure}}
6
7 {{figure image="processHistoryPdfDemo_en.png" width="400" clear="h1"}}
8 Example file content generated by the //Process log as PDF// workflow action.
9 {{/figure}}
10
11 The workflow action //Process log as PDF// allows you to generate a PDF file with the current log of the process.
12
13 == Paramerter ==
14
15 === Storage options for the created files ===
16
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.
21
22 == Action variables ==
23
24 Actions of type //Process log as PDF// provide [[Action variables>>Formcycle.UserInterface.Variables||anchor="HActionvariables"]] which can be used in subsequent actions.
25
26 === Standard action variables ===
27
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.
32
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.
37
38 === Action specific variables ===
39
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.