JavaScript
[ Interface ]
export interface JavaScript extends baseAction {
objectType: 'JavaScript';
sourceLines: string[];
injectContextObject?: boolean;
waitMode?: 'Synchronous' | 'Asynchronous';
}
Extends baseAction
Defines an action of type JavaScript.
An action that is used to execute a stored JavaScript source code.
Properties
Name | Type | Description |
---|---|---|
active [ optional ] | Defines whether the action is active or inactive. | |
collapsed [ optional ] | Defines whether the action is collapsed or expanded in the Actions & Conditions Editor. | |
asyncWait | Defines whether or not asynchronous actions should wait until the end of the action is signaled before the following action is executed. | |
success | Action[] | A list of actions to be performed in case of success. |
error | Action[] | A list of actions to be performed in case of an error. |
objectType | 'JavaScript' | Defines the relevant parser. |
sourceLines | string[] | An array of JavaScript source code lines. |
injectContextObject [ optional ] | Defines whether the scope in which the JavaScript is to be executed should receive a context object through which an asynchronous success or failure can be signaled. | |
waitMode [ optional ] | 'Synchronous' | 'Asynchronous' | Defines whether the JavaScript is terminated synchronously or asynchronously. |
Available from version 1.12 |