Isight can copy the contents of an input file parameter into the working directory or any other local directory before a component runs. Similarly, Isight can copy output files from the working directory or another location into an output file parameter after the component runs. This allows components designed for local execution to be distributed across the network without changes. You can specify the name of the local file if the program requires input or output files with a specific name. Otherwise, Isight selects the file name and makes it available to the component when the component executes. The locations of file parameters are saved with the other run results. You can view the contents of a file parameter from the Isight Runtime Gateway. Similar to parameters, file parameters are defined by their attributes. You can give a file parameter a name, which is separate from the name of the file to which the file parameter points (see About File Parameter Names). In addition, you can define a shorter display name that is easier to read in visuals. Display names for file parameters are the same as for parameters. For more information, see About Display Names. You can determine whether or not you want to save the file parameter to the results database. For more information, see About Saving File Parameters to the Database. When you add a new input or output file parameter, you need to specify an associated source and destination. The terms have different meanings for input and output file parameters. For an input file parameter, the source is the location where the file will reside prior to the component executing and the destination is the location where the runtime environment will copy the file so that the file will be available when the component executes. For an output file parameter, the source is the location where the file will exist after the component executes and the destination is the location where the runtime environment will copy the file before Isight removes the component’s runtime directory. For more information, see About Configuring the Source or Destination for File Parameters. For information about configuring file sets, see Adding File Sets. You can map a file parameter from one component to a file parameter in another component during execution. For file sets, you can map a file set to another file set, a file set to a resizable array of files, and a resizable array of files to a file set. A mapped input file parameter behaves differently from an unmapped one; the source configuration is ignored for a mapped input file, and the contents of the file parameter that is mapped to this input parameter are used instead. For more information, see Mapping Parameters and File Parameters. Isight can adjust how it references a file parameter to account for the differences caused by the fact that shared or network file systems are often named differently on different computers. For more information, see About File Parameters on Shared or Network File Systems. You can also select the format of the file and the encoding (how bytes are converted into characters). For more information, see About the File Type and About Encoding. The following figure shows an example of the Files tab. About File Parameter NamesThe file parameter name is separate from the name of the file to which the file parameter points. It is the name to look for on the Mappings subtab when mapping file parameters and is also the column heading on the Runtime Gateway Parameters and History tabs. The default parameter name for a file parameter is the name of the file with any directory names removed and the period before the file type changed to an underscore (a period is not a valid character in parameter names). About Saving File Parameters to the DatabaseFile parameters are often used for temporary work, so it is often desirable to not store the information for these files in the database. File parameters that are not saved will not be displayed in the Parameters or History tabs on the Runtime Gateway during or after execution. Output file parameters that are not saved can still be mapped to other components. The contents of the file are kept until they are no longer needed for mapping. As part of the execution process, Isight does not save file parameters to the database. You can specify whether or not you want to save file parameters to the database when you add a new file parameter, or you can use the Files tab after adding the file parameter to edit your choice. For more information, see Editing Parameters. You can also set a preference option for saving file parameters to the database. For more information, see Setting Gateway Preferences. About Configuring the Source or Destination for File ParametersWhen you add an input and output file parameter, you must specify a source and destination. The source for an input file parameter is the location where the file will exist prior to the component executing. The destination for an input file parameter is the location where the runtime environment will copy the file so that the file will be available when the component executes. The source for an output file parameter is the location where the file will exist after the component executes. The destination for an output file parameter is the location where the runtime environment will copy the file before Isight removes the component’s runtime directory. Isight supports the following source and destination locations:
The source and destination options are described as follows:
About the File TypeWhen you are working with file parameters, you can choose the format (text or binary) of the file. Text files are displayed faster than binary files in the Runtime Gateway and can be converted from a nonstandard character encoding. Binary files are always copied unchanged and are displayed in an external Web browser. Whether a binary file can be viewed or not depends on what file formats are recognized by your Web browser. About EncodingIn a Locale (a system setting that includes the language, number formats, and character set in use) that uses multibyte characters (Japanese, Chinese, Korean), there is a default encoding used to convert bytes into characters. Most text files are written using this encoding, but sometimes it is necessary to specify the encoding. For additional information on encoding, see File Type and Encoding in the Isight Development Guide. Encoding is used for file parameters that use a file or an FTP file as the source or destination. It is used to control how the bytes are read from the disk or the network are converted to characters.
Note: You can control the default encoding by setting a preference option. For more information, see Setting Preferences. |