Hitachi

JP1 Version 12 Job Management: Getting Started (Client Process Automation)


2.2 Creating a job

This section describes how to create a job with the actual GUI.

As an example, let's create a job that opens a message dialog box on the screen to display the string hello!!.

This example uses the msg command (msg.exe console /w hello!!) to open the message dialog box.

On a computer with CPA installed, from the program menu, select JP1 Client Process Automation and RegistJob. The Job Design View appears.

Procedure

  1. Select the Exec. on time tab.

    [Figure]

  2. Click the [Figure] (New) button. The Job exec. on time dialog box appears.

    [Figure]

  3. Enter the job name and description.

    Example

    Job name: TEST01

    Details: Hello Output

    [Figure]

  4. Under Select item, select the Action tab.

    [Figure]

  5. Select the Command execution item, and then click the Apply button.

    This sets the Action field in the Execute action area to Command execution.

  6. Enter the execution command, the parameter and the virtual user name.

    Example

    Execution command: msg.exe#

    Parameter: console /w hello!!

    Virtual user name: Virtual user name#2

    #1

    If you want to execute the command on a 64-bit operating system, specify the command as follows.

    When the installation path of the Windows system is C:\Windows:

    C:\Windows\sysnative\msg.exe

    #2

    If you want to execute the command as a specific Windows user, specify the name of a virtual user associated with that Windows user.

    If this is omitted, the command is executed with the account for the CPA job execution service. For details on the virtual user name, see the manual JP1/Client Process Automation Configuration and Administration Guide.

    [Figure]

  7. Set a schedule.

    In this example, select the Execute immediately after finishing register check box to execute the job immediately after the job is registered. (Leaving Exec. date, Exec. time, and Calendar in the Schedule section blank has the same effect as selecting the Execute immediately after finishing register check box.)

    If you want to set a schedule to run the job at the specified date and time, see 2.5 Setting a schedule.

    [Figure]

  8. Click the Register button.

    A message appears indicating the completion of the registration.

  9. Click the OK button to run the job.

    Check that the job TEST01 runs and that a message dialog box appears to show the string hello!!.

  10. Click the OK button to close the message dialog box.

    [Figure]