Basic system APIs.
function digest(message as string) as string
Creates a SHA1 digest of the message.
function digestSHA256(message as string) as string
Creates a SHA256 digest of the message.
function digestSHA512(message as string) as string
Creates a SHA512 digest of the message.
function digestWithAlgorithm(message as string, algorithm as string) as string
Creates a digest of the message based on the algorithm.s
function encryptHmacMD5(data as string, key as string) as string
Computes a Hash-based Message Authentication Code (HMAC) using the MD5 hash function.
Since 1.5.1
method error(errorText as string)
Raises an error and terminates execution.
method errorIf(condition as bool, errorText as string)
If the condition is true, raises an error and terminates execution.
method flushCache()
Flushes the system cache.
function getCurrentUser() as user
Returns the current user.
type user {
var name as string;
var idOrganization as int;
var idBusinessUnit as int;
var key as int;
}
function isAtomic() as bool
Returns true if the current method is part of a transaction.
Since 1.5.1
function randomUUID() as string
Creates and returns a new random string.
function randomUUID() as string
Creates and returns a new random UUID.
function secureRandom() as string
Creates and returns a new random string using a cryptographically strong random number generator.
function sequence(start as int, count as int, step as int) as collection of int
Creates and returns a collection of integers starting at start with count items, using step as the increment.