[Contents] [Prev] [Next] [Index] [Report an Error] [No Frames]


Configuring the VTA to Run Scripts

The script runner processor can invoke external executable scripts or JavaScript programs. We recommend using JavaScript for better performance.

To configure the script runner processor:

  1. Configure a JavaScript program or an external script. See:
  1. Configure an action for the script runner processor. See:

Configuring JavaScript Programs

To configure a JavaScript program:

  1. In VTA Configuration Manager, select Edit or Create in the navigation pane.

The Current Configuration window appears.

  1. Select Processors.
  2. Select Script Runner Processor.

The Script Runner Processor configuration appears.

  1. If the Script Runner processor is disabled, click Enable to enable it.
  2. Enter the name of the script in the New Javascript field, and click Create.

The JavaScript configuration appears.

  1. Fill in the fields for the JavaScript. See JavaScript Fields.
  2. Configure a VTA action for the script. See Configuring VTA Actions to Run Scripts.

JavaScript Fields

This section describes the fields used to configure JavaScript programs.

New Javascript

Javascript

Parameter

Return Attribute

Return Type

Configuring External Scripts

To configure an external script:

  1. In VTA Configuration Manager, select Edit or Create in the navigation pane.

The Current Configuration window appears.

  1. Select Processors.
  2. Select Script Runner Processor.

The Script Runner Processor configuration appears.

  1. If the Script Runner processor is disabled, click Enable to enable it.
  2. Enter the name of the script in the New External Script field, and click Create.

The External Script configuration appears.

  1. Fill in the fields for the external script. See External Script Fields.
  2. Configure a VTA action for the script. See Configuring VTA Actions to Run Scripts.

External Script Fields

This section describes the fields used to configure external scripts.

New External Script

Full Path

Parameter

Return Attribute

Return Type

Configuring VTA Actions to Run Scripts

You can configure actions that the script runner processor performs on events. For example, you can set up an action to run either an external script or a JavaScript program.

To configure actions for the script runner processor:

  1. In the VTA Configuration Manager navigation pane, select Edit.
  2. Under Current Configuration, click Actions.

A list of actions appears. For example:

  1. To add an action, enter a name for the action in the New Quota VTA Actions field, and click Create.

The action configuration screen appears.

  1. Select ScriptRunner in the Processor field, and click Save. (If ScriptRunner does not appear in the pull-down list, enable the Script Runner Processor.)

An expanded configuration screen for the action appears.

  1. Fill in the fields described in this section.

Processor

Function

Parameter Name

Parameter Content

Abort On Error


[Contents] [Prev] [Next] [Index] [Report an Error] [No Frames]