Wiki source code of Speichern im Dateisystem


Hide last authors
fse 13.1 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//.
nlo 1.1 3 {{/figure}}
4
fse 13.1 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.
nlo 1.1 6
fse 13.1 7 == Parameters ==
nlo 1.1 8
fse 13.1 9 === Details about saving to the file system ===
jdr 4.3 10
fse 13.1 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:
jdr 4.3 16 :: //Windows//: C:\Users\fc\form\demo
17 :: //Linux//: /home/fc/form/demo
fse 13.1 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.
jdr 4.5 21
fse 13.1 22 == Action variables ==
jdr 4.5 23
fse 13.1 24 Actions of type //Save to file system// provide [[Action variables>>Formcycle.UserInterface.Variables||anchor="HActionvariables"]] which can be used in subsequent actions.
jdr 4.5 25
fse 13.1 26 === Standard action variables ===
jdr 4.5 27
fse 13.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.
jdr 4.5 32
fse 13.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.
jdr 4.5 37
fse 13.1 38 === Action specific action variables ===
jdr 4.5 39
fse 13.1 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.