Create Temporary File

Function:

This tool is used to temporarily create a local AWM-managed file in the Eclipse workspace. The local file is copied from the file referenced by the input parameter. The path information for the local file is returned as a file descriptor by the tool, and can be used by later tools of the same action as an input. The file name and the suffix of the file can be determined through input parameters.

The file must be explicitly deleted with the tool "Cleanup Edit Session".

The tool Create Temporary File is typically used in edit actions to check out a file from a remote SCM system, edit this file and check in the file into the SCM system on save or close.

Note: Files created with this tool can only be accessed by other tools within the action that created this file and in the associated save and close actions.

Parameters:

Parameter # I/O Type Description
1 [M] I File References the input file.
2 [O] I String Requested file name of the temporarily stored file, without a suffix. The default name is tempfile.
3 [O] I String File suffix of the temporarily stored file. If this parameter is not used, the file does not have a suffix.
4 [O] I String Must point to a property of type Boolean. Specifies whether the file should be opened in edit or browse mode. The default is read-only=false, which is the edit mode.
1 [M] O File References the target temporary file created after the execution of the tool.
Note: If one of the optional input parameters is used, the previous input parameters have to be defined.