Using the Scripting Feature

Code Insight 6.14.2 SP1

Use the following procedure to access the scripting feature.

To access the scripting feature, do as follows:

1. Access the Admin Home page by clicking the Home button in the top left-hand corner. Access the scripting feature from the Administration pull-down menu.

The Scripting page appears.

2. Select a script from the pull-down menu.
3. To execute the selected script, click Execute Script.
4. The scripts are registered in the database (MySQL/Oracle) using the following sample insert statement. The corresponding groovy script file should be placed in the scripts directory under the following:

$Code Insight_ROOT_DIR/config/core/scripts/.

INSERT INTO pas_system_script (id_, name_, display_name_, description) VALUES (1,'sample_script','Sample Groovy Script','This is a sample Groovy script.');

Note:You need a commit; statement if executing this on Oracle.