Main Settings (External Operation)

An external operation allows you to run shell scripts (for example, .sh or .bat files) through the portal and schedule these actions through portal jobs (see About Jobs). For example, you might want to create scripts that query documents, ping portal servers, e-mail snapshot query results to users, or run any custom job on a specified schedule.

Warnings:

To define an external operation:

  1. In the Operating System Command box, type the relative path and file name of the script enclosed in quotes (").

    Important:
    All external operation scripts must reside in the scripts directory of each of the Automation Services that will run them. The scripts directory is located on the computer that hosts the Automation Service, in the Oracle WebCenter Interaction installation directory (for example, C:\bea\alui\ptportal\scripts). The Automation Service will not run any scripts that are not in this directory.

    The following tokens in the command line will be substituted:

  2. Expanded tokens that contain spaces or special characters which are not surrounded with quotes (") are enclosed in quotes automatically.

  3. In the Time-out in seconds box, type the number of seconds after which, if this operation is still running, you want the job to stop. If you do not want to set a time-out, leave this setting at 0 (infinite).

  4. To run this operation, you must associate it with a job and schedule the job to run.

External Operations Created Upon Installation

An external operation is a powerful feature that allows you to create custom jobs. To learn more about external operations, see the two working examples that are created upon installation:


  1. Click Administration.
  2. Open an administrative object folder.
  3. In the Create Object menu, click External Operation.