Wiki source code of Speichern im Dateisystem


Show last authors
1 {{figure image="save_file_system_en.png" clear="h1"}}
2 The interface for setting the options of actions of type //Save to file system//.
3 {{/figure}}
4
5 This action allows to store files in the file system of the server for a longer period of time. Files created by actions are otherwise only temporarily available and will be deleted once the workflow is finished.
6
7 == Parameters ==
8
9 === Details about saving to the file system ===
10
11 ; Files
12 : Selection of files which should be saved. Files from previous actions, files from upload items, task attachments or form files can be selected. See [[actions>>doc:Formcycle.Designer.Workflow.Actions.WebHome]] for a list of supported URL protocols.
13 ; Destination directory
14 : Specification of a path to save the file. If a directory is specified that does not exist, the action will try to create this directory. Please make sure that the appropriate permissions are available for the target directory. Check with the system administrator if necessary.
15 //Examples// for saving files in the system user directory:
16 :: //Windows//: C:\Users\fc\form\demo
17 :: //Linux//: /home/fc/form/demo
18 ; Allow folder structure in variables
19 : If this option is enabled, variables may contain path segments of the form '<folder name>/<folder name>'.
20 Otherwise the path separator ('/') is removed from the placeholder. Navigational references to parent file folders are not allowed and will be removed.
21
22 == Action variables ==
23
24 Actions of type //Save to file system// 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 action variables ===
39
40 ; [%$<action_name>.RESULT.absolutePath%]
41 : Absoulute path to the directory where the files were saved.
42 ; [%$<actionname>.ERROR.message%]
43 : Error code returned if the export directory could not be created or the files could not be written to the file system.