The adapter allows access to files within a project, in process libraries and adapters.
Properties
Operation | Defines the operation executed by the adapter Possible values: ReadFile: Read file defined in the path parameter.
WriteFile: Write data from the previous process step to the target file defined in the path parameter.AppendFile: Append file from the previous process step to the target file defined in the path parameter.
If the target file defined in the path parameter does not exist, a file will be created.
Exist: Check whether the files or folders defined in the path parameter exist. Outputs an XML with metadata as a result.CreateDirectory: Create folder defined in the path parameter.Delete: Delete files or folders defined in the path parameter.ListDirectory: List names and metadata of files and folders from the folder defined in the path parameter. Outputs an XML with metadata as a result.
The content of the files is not listed.
Move: Move files or folders defined in the path parameter to the folder defined in the targetPath parameter.Copy: Copy files or folders defined in the path parameter to the folder defined in the targetPath parameter.
|
Parameters
Adapter | Main adapter class (Do not change!) Possible values: de.softproject.integration.adapter.system.repository.ProjectAccessAdapter: Main class (default) |
path | Path to the file or folder to be processed. Possible values: Folder path
The project path must be defined without the project name. Example: Processes/MyFolder
|
targetPath | For copy and move operations: target of the file/folder to be copied or moved. |
nameFilter | Filters the output of the ListDirectory operation by name Possible values: - Any string (e.g.
myFolder ) - Wildcard
*
|
Status values
1 | The adapter operation was executed successfully. |
0 | No file was found for the Exists operation. |
-1 | An error occurred during the execution of the adapter. |
For further information please visit the section