Kodall
Packages

Package: system

Basic system APIs.

Basic system APIs.

Methods

digest

ONE Workflow
function digest(message as string) as string

Creates a SHA1 digest of the message.

digestSHA256

ONE Workflow
function digestSHA256(message as string) as string

Creates a SHA256 digest of the message.

digestSHA512

ONE Workflow
function digestSHA512(message as string) as string

Creates a SHA512 digest of the message.

digestWithAlgorithm

ONE Workflow
function digestWithAlgorithm(message as string, algorithm as string) as string

Creates a digest of the message based on the algorithm.s

encryptHmacMD5

ONE Workflow
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

error

ONE Workflow
method error(errorText as string)

Raises an error and terminates execution.

errorIf

ONE Workflow
method errorIf(condition as bool, errorText as string)

If the condition is true, raises an error and terminates execution.

flushCache

ONE Workflow
method flushCache()

Flushes the system cache.

getCurrentUser

ONE Workflow
function getCurrentUser() as user

Returns the current user.

ONE Workflow
type user {
    var name as string;
    var idOrganization as int;
    var idBusinessUnit as int;
    var key as int;
}

isAtomic

ONE Workflow
function isAtomic() as bool

Returns true if the current method is part of a transaction.

Since 1.5.1

randomString

ONE Workflow
function randomUUID() as string

Creates and returns a new random string.

randomUUID

ONE Workflow
function randomUUID() as string

Creates and returns a new random UUID.

secureRandom

ONE Workflow
function secureRandom() as string

Creates and returns a new random string using a cryptographically strong random number generator.

sequence

ONE Workflow
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.