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 Name I/O Type Description
Source File [M] I File References the input file.
File Name [O] I String Requested file name of the temporarily stored file, without a suffix. The default name is tempfile.
Suffix [O] I String File suffix of the temporarily stored file. If this parameter is not used, the file does not have a suffix.
Read Only [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.
Temporary File [M] O File References the target temporary file created after the execution of the tool.