Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space WDESIGNER and version 23.1.1

Stereotype Attributes

DirectoryAliasDirectory Alias

Multiexcerpt
MultiExcerptNamedirectory_alias
AttributeDescriptionAllowed Values / Example
NameSpecify a name for the alias.any string
Standard
directorySpecify a path to a directory.
This directory will be treated as a base directory. It will be either used directly (for a Filesystem adapter operating directly on directories), or as a base directory for a path segment given by a dynamic file name parameter. It is not possible to jump out of the base directory by ../../aDirectory tricks. The base directory can only be changed in the service settings on the Bridge.

tmp/Export

fileEncodingSpecify the default encoding be used with the directory. This default encoding can be overwritten on adapter calls, using a dynamic encoding parameter, e.g. on Filesystem adapter calls reading lines, or with the Flat File adapter.Refer to Charset Definitions for possible values.
default, when emptyiso-8859-1
Designer defaultutf-8

FileAliasFile Alias

Multiexcerpt
MultiExcerptNamefile_alias
AttributeDescriptionAllowed Values / Examples
NameSpecify a name for the alias.any string
Standard
fileSpecify name and path of the file you want to access. tmp/Export/ProductExport.txt
encoding
Specify the encoding of the file.Refer to Charset Definitions for possible values.
default, when emptyiso-8859-1
Designer defaultutf-8
resourceThis attribute currently cannot be used in Designer context.

Parameters File Handling

read
.

File System Adapter

AttributeDescriptionAllowed Values
aliasSpecify the File or Directory alias the adapter should use to establish the connection.any valid File or Directory alias
action

Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNameinfo_alias_attribute_action
PageWithExcerptINTERNAL:_designer_excerpts


modeIf you are using an append operation, you need to select the corresponding mode. See append operation for detailed information.append (default), overwrite

Filesystem Adapter File Operations

append Operation

Multiexcerpt
MultiExcerptNameappend_modes

You can use operation append in two modes:

  • append
    If mode is empty or set to append, the content stored in data will be appended to the file specified in name. If the file does not exist, it will be created.
  • overwrite
    If mode is set to overwrite, the file specified in name will be overwritten with the content stored in data. If the file does not exist, it will be created.
    overwrite will only be applied to the first append. All subsequent appends (e.g. in a loop) automatically get mode append.
  • append ( data : Blob, name : String, length : Integer )
Multiexcerpt
MultiExcerptNameappend
NameTypeDirectionDescription
dataBlobinContent you want to write to the file.
nameStringin

Fully qualified file name of the file you want to write, including the path.

lengthIntegerinLength (in Bytes) of the data you want to append, if you want to only write part of the Blob.

close Operation

  • close ( name : String )
Multiexcerpt
MultiExcerptNameclose
NameTypeDirectionDescription
nameStringin

Fully qualified file name of the file you want to close, including the path.

copy Operation

  • copy ( source : String, traget : String )
Multiexcerpt
MultiExcerptNamecopy
NameTypeDirectionDescription
sourceStringin

Fully qualified file name of the file you want to copy, including the path.

targetStringin

Fully qualified file name of the target file, including the path.

read Operation

  • read ( name : String, position : Integer, length.in : Integer, data : Blob, length.out : Integer )
Multiexcerpt
MultiExcerptNameread
/out
NameTypeDirectionDescription
nameStringin

Fully qualified file name of the file you want to read, including the path.

positionIntegerinPosition (in Bytes) from which you want to start reading the file.
length.in
IntegerinLength (in Bytes) of the snippet of the file you want to read. The actual length of the read data is given back (e.g. on file end).
dataBloboutContent that has been read.
length.outIntegeroutLength (in Bytes) of the snippet of the file you want to read. The actual length of the read data is given back (e.g. on file end).

readLine Operation

  • readLine ( name : String, encoding : String, length : Integer, line : String )
Multiexcerpt
MultiExcerptNamereadLine
lineStringFile content line NULLlengthIntegerLength (in Bytes) length 0
NameTypeDirectionDescription
nameStringin

Fully qualified file name of the file you want to read, including the path.

encodingStringinEncoding of the file. Default encoding is iso-8859-1.
For a list of possible encodings see Charset Definitions .
lengthIntegeroutLength (in Bytes) of the line that has been read. On file end, length is 0.
lineStringoutFile content of the line that has been read. On file end, line is NULL.
write

remove Operation

  • remove ( name : String )
Multiexcerpt
MultiExcerptNamewriteremove
NameTypeDirectionDescription
nameStringin

Fully qualified file name of the file you want to writeremove, including the path.

dataBlobinContent you want to write to the file.
lengthIntegerinLength (in Bytes) of the data you want to write, if you want to only write part of the Blob.
positionIntegerinPosition (in Bytes) from which you want to start writing the file.

append

Multiexcerpt
MultiExcerptNameappend_modes

You can use operation append in two modes:

rename Operation

  • readLine ( name : String, newName : String )
  • append
    If mode is empty or set to append, the content stored in data will be appended to the file specified in name. If the file does not exist, it will be created.
  • overwrite
    If mode is set to overwrite, the file specified in name will be overwritten with the content stored in data. If the file does not exist, it will be created.
    overwrite will only be applied to the first append. All subsequent appends (e.g. in a loop) automatically get mode append.
    Multiexcerpt
    MultiExcerptNameappendrename
    NameTypeDirectionDescription
    nameStringin

    Fully qualified file name of the file you want to

    write

    rename, including the path.

    datanewNameBlobStringinContent

    New name you want to

    write to

    rename the file

    .
    lengthIntegerinLength (in Bytes) of the data you want to append, if you want to only write part of the Blob.
    status

    to. We recommend to provide a fully qualified file name (including the path).

    status Operation

    • status ( name : String, size : Integer, type : String, accessTime : DateTime, creationTime : DateTime, modificationTime : DateTime )
    Multiexcerpt
    MultiExcerptNamestatus
    .Type of accessed element (File or Directory)
    NameTypeDirectionDescription
    nameStringin

    Fully qualified file name of the file/directory you want to read, including the path

    typeStringout

    .

    sizeIntegerout

    Size of the file in Bytes.

    Info
    iconfalse

    size is meaningless for directories, as it is not the combined size of all contained files and subfolders, but rather some constant defined by the operating system (e.g. 0 or 4096).

    typeStringoutType of accessed element (File or Directory).
    accessTimeDateTimeoutTimestamp when the file/directory was accessed for the last time.
    creationTimeDateTimeoutTimestamp when the file/directory was created.
    modificationTimeDateTimeoutTimestamp when the file/directory was modified for the last time.
    rename

    write Operation


    • write ( data : Blob, name : String, position : Integer, length : Integer )
    Multiexcerpt
    MultiExcerptNamerenamewrite
    Multiexcerpt
    MultiExcerptNameremove
    NameTypeDirectionDescription
    namedataStringBlobinFully qualified file name of the file Content you want to rename, including the path.
    newNameStringin

    New name you want to rename the file to. We recommend to provide a fully qualified file name (including the path).

    remove

    Description
    NameTypeDirectionwrite to the file.
    nameStringin

    Fully qualified file name of the file you want to removewrite, including the path.

    copymultiexcerpt
    position
    Integer
    MultiExcerptNamecopy
    NameTypeDirectionDescription
    sourceStringin

    Fully qualified file name of the file you want to copy, including the path.

    targetStringin

    Fully qualified file name of the target file, including the path.

    close

    inPosition (in Bytes) from which you want to start writing the file.
    lengthIntegerinLength (in Bytes) of the data you want to write, if you want to only write part of the Blob.

    Filesystem Adapter Directory Operations

    createDirectory Operation

    • createDirectory ( name : String )
    Multiexcerpt
    MultiExcerptNamecreateDirectory
    Multiexcerpt
    MultiExcerptNameclose
    NameTypeDirectionDescription
    nameStringin

    Fully qualified file name of the file directory you want to closecreate, including the path.

    Parameters Directory Handling

    readDirectory Operation

    • readDirectory ( name : String, entries : String[] )
    Multiexcerpt
    MultiExcerptNamereadDirectory
    NameTypeDirectionDescription
    nameStringin

    Fully qualified path to the directory you want to read.

    entriesArray of StringoutreadDirectory returns an array of String containing the names of the content elements. The array elements do not contain the directory prefix (path).

    createDirectory

    Multiexcerpt
    MultiExcerptNamecreateDirectory
    Fully qualified file name of the directory you want to create, including the path
    NameTypeDirectionDescription
    nameStringin.

    status

    Multiexcerpt includeMultiExcerptNamestatus
    PageWithExcerptFilesystem


    remove Operation

    You can only remove an empty directory with the remove operation. In case the directory contains files or subfolders, use removeRecursively (see below).

    • remove ( name : String )
    Multiexcerpt
    MultiExcerptNameremove_directory
    NameTypeDirectionDescription
    nameStringin

    Fully qualified file name of the directory you want to remove, including the path.

    Anchor
    removeRecursively
    removeRecursively

    removeRecursively Operation

    • removeRecursively ( name : String )
    Multiexcerpt
    MultiExcerptNameremoveRecursively_directory
    NameTypeDirectionDescription
    nameStringin

    Fully qualified file name of the top node of the directory tree you want to remove, including the path.

    status Operation

    • status ( name : String, type : String, size : Integer, accessTime : DateTime, creationTime : DateTime, modificationTime : DateTime )

    Multiexcerpt include
    MultiExcerptNamestatus
    PageWithExcerptFilesystem