Hitachi

Job Management Partner 1 Version 10 Job Management Partner 1/Automatic Operation Service Template Developer's Guide


2.2.6 Procedure for setting custom files

You can define the contents of the Service Details window by selecting a custom file in the Edit Service Definition dialog box. A custom file can consist of one file or several. For example, if you want to include images and links in the dialog box, you can archive several files or folders in zip format and register the archive. The procedure for setting a custom file differs depending on whether it consists of one file or several.

Note that you can assign a different custom file at a later stage if circumstances change.

To set a single file as a custom file:

  1. In the Edit Service Definition dialog box, click the Select button in the Custom Files area.

  2. Select the file you want to specify as the custom file.

To set multiple files as a custom file:

  1. Place the files you created in any-folder\webroot\language-code\.

    As language-code, you can specify a two-character language code (ja, en, or zh) as defined in ISO-639.

  2. Archive the contents of the language-code folder to a file in .zip format.

  3. In the Edit Service Definition dialog box, click the Select button in the Custom Files area.

  4. Select the file (.zip) you want to specify as the custom file.

  5. In the Custom File Name for Service Details Dialog field, enter the path of the file you want to use to define the contents of the Service Details window.

    Specify a relative path whose current directory is the location where the archive will be extracted. Use forward slashes to delimit the path.

Tip

If the file has the extension the .zip, it is automatically renamed to webroot.zip when you build or release the service template.

To change the window contents based on the Web browser locale:

  1. Store the file or files you created in any-folder\webroot\language-code\.

    As the language code, you can specify a two-character language code as defined in ISO-639 (ja, en, or zh) in lower-case letters. You can also store a file directly under the webroot folder. This file is used when either of the following conditions is met:

    • There is no language code folder that corresponds to the locale of the Web browser.

    • There are no files in the language code folder that correspond to the locale of the Web browser.

    Important note
    • The file stored directly under the webroot folder must have the same name as the files in the language code folders.

    • Even if you do not store a file directly under the webroot folder, the files in each language code folder must have the same name.

  2. Archive the contents of the webroot folder to a file in .zip format.

  3. In the Edit Service Definition dialog box, click the Select button in the Custom Files area.

  4. Select the .zip file you want to specify as the custom file.

  5. In the Custom File Name for Service Details field, enter the file name you want to set.

Related topics