Service script (svcscript)
Description
Script used as a subroutine for managing common events and data. Executed by the Script role; can run asynchronously without binding to any other runtime resources.
Can be launched to process:
- a scheduled service task (svctask),
- data from another script, nested or asynchronously,
- an incoming HTTP request,
- call context data,
- sending a message to an integration channel,
and so on.
Contains only common components available to all script types.
The script is edited in the visual script editor (scripteditor application).
Limitations
-
The collection is available in any domain, including the master domain.
-
The script handler may be subject to restrictions set in the parent domain for the current domain: pause between components, number of components, execution time, etc.
-
Licensed by a quantitative parameter: a license is consumed for service scripts.
Fields
{
"id": uuid,
"code": str,
"name": str,
"scriptdata": object,
"projectid": uuid,
"lwt": date,
"opts": {
"title": str,
"comment": str,
"loglevel": int,
"variables": object
},
"ext": {
"ct": date,
"lwt": date
}
}
| Specification | Description |
|---|---|
Field: |
Identifier. Can be specified at creation, otherwise generated by the system. |
Field: |
Code. Used to associate with other entities. |
Field: |
Name |
Field: |
Script content: components, variables, and some other properties. |
Field: |
Identifier of the project the script belongs to |
Field: |
(duplicate, obsolete) Time of last modification of the object |
Field: |
|
Field: |
Arbitrary title |
Field: |
Arbitrary comment |
Field: |
Script logging level (
|
Field: |
Initial values of script variables. |
Field: |
Allows extending the compound with arbitrary keys and values |
Field: |
Object creation time |
Field: |
Time of last modification of the object |
See also
Logical roles
-
svc services service scripts.