Filemanager-call
Definition
This plug-in allows you to perform a sequence of file operations on the local filesystem. The operations allowed are:
- Deletion of one or more file whose name corresponds to a regular expression
- Rename a file
- Moving of one or more files, whose name corresponds to a regular expression,from a directory source to a destination directory
- Copy of one or more files, whose name corresponds to a regular expression,from source directory to a destination directory
- ZIP compress of one or more files, whose name corresponds to a regular expression,from a source directory to a ZIP file in a destination directory
- Decompression of ZIP file from a directory source to a target directory
- Check existence of one or more files whose name corresponds to a given regular expression
GreenVulcano® ESB provides two different tools, GV Console® and VulCon®, to configure all supported plug-ins in GV services.
VulCon / GV Console Configuration
filemanager-call is the operation that must be configured into VulCon® or GV Console® System section, to execute files operations. In order to configure an operation filemanager-call you must define the following fields:
- name: Operation name. Used in the 'Flow' section to associate workflow nodes to VCL operations.
To execute a search file operation add "FileSearchCommand" element and define the following fieds:
- sourcePath: Absolute path of the directory to search in
- filePattern: File name to search for. Can be a regular espression
- returnFullPath: If true the found files are inserted in list with full path default false
- isCritical: If true an internal error interrupt the command sequence, Default true
To move a file in other directories add "FileMoveCommand" element and define the following fieds:
- sourcePath:Absolute path of the file/directory to move
- targetPath: Absolute path of the destination file/directory
- filePattern: File name to move. Can be a regular espression. Is used only if sourcePath is a directory,and if empty the filter is ignored
- isCritical: If true an internal error interrupt the command sequence. Default true
To remove a files from a specific directory add "FileDeleteCommand" element and define the following fieds:
- sourcePath: Absolute path of the file/directory to remove.
- filePattern: File name to remove. Can be a regular espression. Is used only if targetPath is a directory,and if empty the filter is ignored
- isCritical: If true an internal error interrupt the command sequence. Default true
To copy a files from a specific directory add "FileCopyCommand" element and define the following fieds:
- sourcePath: Absolute path of the file/directory to copy.
- targetPath: Absolute path of the destination file/directory.
- filePattern: File name to copy. Can be a regular espression.Is used only if sourcePath is a directory, and if empty the filter is ignored.
- isCritical: If true an internal error interrupt the command sequence. Default true