Closing a File
This page explains the Filesystem Adapter in Bridge context. If you were looking for the same information regarding the PAS Designer, refer to Filesystem Adapter in the Designer guide.
Parameters of Action "close"
Name | Type | Direction | Description |
---|---|---|---|
name | String | in | Fully qualified file name of the file you want to close, including the path. |
Defining a "close" Action
On end of service call, all files that have been used with the file system adapter are closed automatically. In some cases, it may be helpful to manually close a file (e.g. if the service wants to rename or push the file).
To close a file with the file system adapter, you need to define a close action on an action having the stereotype <<FileSystemAdapter>>. You can do this manually (refer to Figure: The Specification Dialog of the File System Adapter) or with the help of the xUML Action Wizard (see context menu of the action node).
- Using static file access, the path and file name of the file you want to close are defined in the component diagram. The link from the activity diagram to the physical information is established by an alias (in the present example: FileAlias). See File System Components for more information on file system aliases.
For information on how to access a file or directory dynamically refer to Dynamic File System Access. - Using dynamic file access, the path and file name of the file you want to close are defined in an activity diagram.
For more information on static and dynamic file access refer to Reading a File.
Related Pages: