Script Structure

A script always contains one or more script tasks. A script is represented by an instance of IScript, the contained tasks are instances of IScriptTask.

Structure of scripts and script tasks
Figure 1. Structure of scripts and script tasks

You create the IScript and IScriptTask instance with the Script Factory API.

The script task type (IScriptTaskType) defines where the task could be executed. It also defines the signature of the task’s code {} block. See the Script Task Types reference for the available script task types.

Script Tasks

Script tasks are the executable units of scripts, which are executed at certain points in the DaVinci Configurator ( specified by the IScriptTaskType). Every script task has a code {} block, which contains the logic to execute.