Script Tasks
Use the Script Tasks form to define and perform ad-hoc or scheduled tasks. These tasks are defined using JADE scripts.
You can use the Script editing form to create, view and modify your scripts.
Script Syntax
Scripts are run against a persistent instance of the ScriptTask class, and can fetch and update settings on the task. Important settings include:
name : String[30]
description : String[max]
pairs : String[max]
schedulingEnabled : Boolean
scheduleIntervalSeconds : Integer
You can use the pairs attribute to store and fetch arbitrary name-value pairs as shown below:
// fetch last-emailed time on this task
lastEmailTimeStamp := pairs.nvGetValue('LastEmail');
// update last-emailed-time on this task
beginTransaction;
pairs.nvSetValue('LastEmail', actualTime.String);
commitTransaction;