Members
console: Console
Put something to log with log levels depending on method
sleep
Block thread for a specified number of milliseconds
Methods
createGuid() → string
Create GUID
gc()
Perform Garbage collection for current scripting context. Use it if you know WHAT you do!
ncrc32(initialValue, data) → number
Native CRC32 implementation. Much (x100) faster compared to JS implemenattion
Arguments:
-
initialValue
(Number)
 Must be 0 in case no initial value
-
data
(String|ArrayBuffer|ArrayBufferView)
 Data to calculate CRC32. In case of string will be transformed to UFT8 before calculation
nsha256(data) → String
Native SHA256 implementation. Much (x10) faster compared to JS implementation
Arguments:
-
data
(String|ArrayBuffer|ArrayBufferView)
 Data to calculate SHA256. In case of string will be transformed to UFT8 before calculation
removeCommentsFromJSON(JSONString) → String
Remove comments from JSON string (actually replace all comment content with ' ')
Arguments:
-
JSONString
(String)
 String to remove comments from
require(moduleName) → *
Load a module. Acts like a Node JS require, with 1 difference:
in case we run in production mode (!process.isDebug
) and minimized version of main module exists, it will be loaded.
By "minimized version" we mean package.json main
entry with .min.js
extension
In case you need to debug from there module is loaded set OS Environment variable
>SET NODE_DEBUG=modules
and restart server - require will put to debug log all information about how module are loaded. Do not do this on production, of course :)
Arguments:
-
moduleName
(String)
setImmediate(callback, …arg) → Number
This function is to be compatible with node.js
Arguments:
-
callback
(function)
-
...arg
(*)
Type Definitions
parsedSQLResult
Properties:
createGuid() → string
gc()
ncrc32(initialValue, data) → number
Arguments:
-
initialValue
(Number)
 Must be 0 in case no initial value -
data
(String|ArrayBuffer|ArrayBufferView)
 Data to calculate CRC32. In case of string will be transformed to UFT8 before calculation
nsha256(data) → String
Arguments:
-
data
(String|ArrayBuffer|ArrayBufferView)
 Data to calculate SHA256. In case of string will be transformed to UFT8 before calculation
removeCommentsFromJSON(JSONString) → String
Arguments:
-
JSONString
(String)
 String to remove comments from
require(moduleName) → *
Load a module. Acts like a Node JS require, with 1 difference:
in case we run in production mode (
!process.isDebug
) and minimized version of main module exists, it will be loaded. By "minimized version" we mean package.jsonmain
entry with.min.js
extensionIn case you need to debug from there module is loaded set OS Environment variable
>SET NODE_DEBUG=modules
and restart server - require will put to debug log all information about how module are loaded. Do not do this on production, of course :)
Arguments:
-
moduleName
(String)
setImmediate(callback, …arg) → Number
Arguments:
-
callback
(function)
-
...arg
(*)
Type Definitions
parsedSQLResult
Properties:
Name | Type | Description |
---|---|---|
parsedSql |
string | |
parsedParams |
Array |
t_getDocumentOffice_req_params
Properties:
Name | Type | Description |
---|---|---|
attribute |
string | name of the "Attribute" in "Entity" |
entity |
string | name of "Entity" |
filename |
string | name of file in storage |
ID |
string | of the "Entity" |
isDirty |
string | get stored document or from temporary storage |
origName |
string | name of file when uploaded |
store |
string | name of file storage |
t_notifyDocumentSaved_req_body
Properties:
Name | Type | Description |
---|---|---|
key |
string | document identifier |
status |
number | editing result |
url |
string | link to resulting document |
userdata |
string | custom information (information about document) |
users |
Array.<string> | list of users responsible for changes |
notmodified |
boolean | document were actually changed |
t_setOnlyOfficeDocument_params
Properties:
Name | Type | Description |
---|---|---|
entity |
string | name of "Entity" |
attribute |
string | name of the "Attribute" in "Entity" |
ID |
string | of the "Entity" |
filename |
string | name of file in storage |
Events
exit
Fires in every thread for the process
instance just before application stops
process.on('exit', function(){
console.log('thread is terminated');
});
Fires in every thread for the process
instance just before application stops
process.on('exit', function(){
console.log('thread is terminated');
});