Page History
Div | ||||||
---|---|---|---|---|---|---|
| ||||||
|
Dynamic usage of an adapter means that all necessary parameters are specified during the execution of an activity. Specifications from the component diagram are used as defaults, but can be overwritten.
...
Figure: Dynamic Reading of a File
In the example above the forward slash "/" is used in the action script specify file name within the path of the filename. This also works for Windows systems.
Info | ||||||
---|---|---|---|---|---|---|
|
...
|
...
|
So in the example above it would be: ".\\tmp\\TestDirectoryDyn\\testFile_dyn.txt
". When hen accessing network drives via UNC (\\computername\sharedfolder\resource
) be aware that you have to escape every instance of "\
" so it would be: " \\\\computername\\sharedfolder\\resource)
.
Directory Alias and Dynamic File Access
...
The File System Adapter call Read a Line Dynamically with Directory Alias uses a directory alias to define a base directory (./tmp
in this case). Action Specify File Name adds to the base directory so that the full path will be ./tmp/testDirectoryDyn/testFile_dyn.txt
. Jumping out of the base directory by ../../aDirectory
tricks is impossible. The base directory can be changed in the service settings on the E2E Bridge, however.
Action Specify Encoding overwrites the default encoding of directory alias TempDirectory (which is UTF-8) with ISO-8859-1.