You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

On this Page:

Related Pages:

Parameters of Action "remove"

NameTypeDirectionDescription
nameStringin

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

When using the Windows style with backward slashes "\" you have to be aware that you have escape this character. The escape character is also the "\".
To avoid this, use forward slashes with Windows as well.

The adapter call does not return any values. If the specified file does not exist, the adapter call will

  • Runtime 2020.9 silently ignore this starting with runtime version 2020.9
  • Runtimes before 2020.09 raise exception FSADSM/23

Defining a "remove" Action

To remove a file with the file system adapter, you need to define a remove 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).

Figure: Removing a File Statically

The path and file name of the file you want to delete 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.

  • No labels