Difference between revisions of "Filemanager-call"

From GreenVulcano Wiki
Jump to: navigation, search
({{VULCON}} / {{GVCONSOLE}} Configuration)
Line 14: Line 14:
 
=={{VULCON}} / {{GVCONSOLE}} Configuration==
 
=={{VULCON}} / {{GVCONSOLE}} Configuration==
 
''filemanager-call'' is the operation that must be configured into {{L_VULCON}} or  {{L_GVCONSOLE}} [[System section]], to execute files operations.
 
''filemanager-call'' is the operation that must be configured into {{L_VULCON}} or  {{L_GVCONSOLE}} [[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.
+
In order to configure an operation ''filemanager-call'' might be defined the following fields:
 +
{|class="gvtable"
 +
! Attribute !! Type !! Description
 +
|-
 +
| type || fixed || This attribute must assume the value '''call'''.
 +
|-
 +
| class || fixed || This attribute must assume the value '''it.greenvulcano.gvesb.virtual.file.reader.FileManagerCall'''.
 +
|-
 +
| name || required || Operation name. Used in the [[Flow]] section to associate workflow nodes to VCL operations.
 +
|}
 +
 
 +
To execute a search file operation add a "'''FileSearchCommand'''" element.
 +
This operation checks if one or more files, whose name conforms to a given regular expression, exists within the specified directory.
 +
 +
The following table shows its attributes:
 +
{|class="gvtable"
 +
! Attribute !! Type !! Description
 +
|-
 +
| type || fixed || This attribute must assume the value '''file-command'''.
 +
|-
 +
| class || fixed || This attribute must assume the value '''it.greenvulcano.gvesb.virtual.file.command.GVSearch'''.
 +
|-
 +
| sourcePath || required || Absolute path of the directory to search in.
 +
|-
 +
| filePattern || required || File name to search for. Can be a regular expression.
 +
|-
 +
| returnFullPath || optional || If true the found files are inserted in list with full path. Default false.
 +
|-
 +
| isCritical || optional || If true an internal error interrupt the command sequence. Default true
 +
|}
 +
 
 +
 
  
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:
 
To move a file in other directories add "'''FileMoveCommand'''" element and define the following fieds:
 
#sourcePath:Absolute path of the file/directory to move
 
#sourcePath:Absolute path of the file/directory to move

Revision as of 12:00, 8 February 2012

Definition

This plug-in allows you to perform a sequence of file operations on the local filesystem. The operations allowed are:

  1. Deletion of one or more file whose name corresponds to a regular expression
  2. Rename a file
  3. Moving of one or more files, whose name corresponds to a regular expression,from a directory source to a destination directory
  4. Copy of one or more files, whose name corresponds to a regular expression,from source directory to a destination directory
  5. 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
  6. Decompression of ZIP file from a directory source to a target directory
  7. 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 might be defined the following fields:

Attribute Type Description
type fixed This attribute must assume the value call.
class fixed This attribute must assume the value it.greenvulcano.gvesb.virtual.file.reader.FileManagerCall.
name required Operation name. Used in the Flow section to associate workflow nodes to VCL operations.

To execute a search file operation add a "FileSearchCommand" element. This operation checks if one or more files, whose name conforms to a given regular expression, exists within the specified directory.

The following table shows its attributes:

Attribute Type Description
type fixed This attribute must assume the value file-command.
class fixed This attribute must assume the value it.greenvulcano.gvesb.virtual.file.command.GVSearch.
sourcePath required Absolute path of the directory to search in.
filePattern required File name to search for. Can be a regular expression.
returnFullPath optional If true the found files are inserted in list with full path. Default false.
isCritical optional 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:

  1. sourcePath:Absolute path of the file/directory to move
  2. targetPath: Absolute path of the destination file/directory
  3. 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
  4. 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:

  1. targetPath: Absolute path of the file/directory to remove.
  2. 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
  3. 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:

  1. sourcePath: Absolute path of the file/directory to copy.
  2. targetPath: Absolute path of the destination file/directory.
  3. 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.
  4. isCritical: If true an internal error interrupt the command sequence. Default true

To compress one or more files add "FileZipCommand" element and define the following fieds:

  1. sourcePath: Absolute path of the source directory
  2. filePattern: File name to zip. Can be a regular espression. Is used only if sourcePath is a directory,and if empty the filter is ignored
  3. targetPath: Absolute path of the destination directory
  4. zipFileName: Name of the zip file
  5. isCritical: If true an internal error interrupt the command sequence. Default true.

To Unpacking the contents of a Zip file add "FileUnZipCommand" element and define the following fieds:

  1. sourcePath: Absolute path of the source directory
  2. zipFileName: Name of the zip file
  3. targetPath: Absolute path of the destination directory
  4. isCritical: If true an internal error interrupt the command sequence. Default true.