Type reference
DevNote generate the rest. |
Type reference
Any
Is primitive: n/a
A variable of type Any
does not perform any type checks and can store anything.
The use of this is not recommended, but it can be used.
Expression | Value/result | Notes |
---|---|---|
|
|
Initializes the variable with the value of |
|
|
Initializes the variable with the string value of |
|
|
Initializes the variable with the integer value of |
Vars
Is primitive: no
Identical to KV
but used for complex structures.
Expression | Value/result | Notes |
---|---|---|
|
|
Initializes a vars variable without value, defaults to empty ( |
|
|
Initializes a vars variable with the property |
|
|
Initializes a vars variable with the property |
Boolean
Is primitive: yes
A Boolean
indicates wether a variable is truthy (true
) or faulty (false
).
Expression | Value/result | Notes |
---|---|---|
|
|
Initializes boolean variable without value, defaults to false. |
|
|
Initializes boolean variable with an boolean value. |
|
|
Parsing string values:
|
|
|
Initializes boolean variable as result of an expression. |
DateTime
Is primitive: yes
A DateTime
contains an absolute temporal value.
A DateTime
can easily be manipulated using date-time functions.
Expression | Value/result | Notes | ||
---|---|---|---|---|
|
|
|
||
|
|
Initializes a DateTime variable to the given ISO 8601 timestamp. |
||
|
|
Initializes a DateTime variable to the given unix timestamp.
|
Duration
Is primitive: yes
A Duration
variable contains a relative temporal value.
It is usually used in combination with DateTime values to calculate offsets.
Expression | Value/result | Notes |
---|---|---|
|
|
|
|
|
Initializes a Duration variable to be 1 minute. |
|
|
Initializes a Duration variable to be 3 hours. |
Float
Is primitive: yes
A Float
is a 64bit floating point number following the IEEE 754 standard.
Expression | Value/result | Notes |
---|---|---|
|
|
Initializes a float variable without value, defaults to 0. |
|
|
Initializes a float variable with a float value. |
|
|
Initializes a float variable with a string value. |
|
|
Initializes a float variable with an invalid string value. |
Integer
Is primitive: yes
An Integer
is a 64bit signed integer; range -9223372036854775808
through 9223372036854775807
.
Expression | Value/result | Notes |
---|---|---|
|
|
Initializes an integer variable without value, defaults to 0. |
|
|
Initializes an integer variable with an integer value. |
|
|
Initializes an integer variable with a float will cut of the decimals. |
|
|
Initializes an integer variable with a string that contains a valid integer. |
|
|
Initializing integer variable with a string that contains a invalid integer results in an error. |
UnsignedInteger
Is primitive: yes
An UnsignedInteger
is a 64bit unsigned integer; range 0
through 18446744073709551615
.
Expression | Value/result | Notes |
---|---|---|
|
|
Initializes an unsigned integer variable without value, defaults to 0. |
|
|
Initializes an unsigned integer variable with an integer value. |
|
|
Initializes an unsigned integer variable with a float will cut of the decimals. |
|
|
Initializes an unsigned integer variable with a string that contains a valid integer. |
|
|
Initializing integer variable with a string that contains a invalid integer results in an error. |
String
Is primitive: yes
A String
variable contains a text (a string).
If the initialization value is a non-null, non-string value; if defined; the value is casted to a string. DevNote provide a complete list for this. |
Expression | Value/result | Notes |
---|---|---|
|
|
Initializes a string variable without value, defaults to empty string ( |
|
|
Initializes a string variable with a string value. |
|
|
Initializes a string variable with an integer value. |
ID
Is primitive: yes
An ID
is a unique system assigned identifier for all system resources.
While it can be assigned or manipulated manually, the system normally either ignores the modifications or errors them out.
An ID
is a 64bit unsigned integer; range 0
through 18446744073709551615
.
Handle
Is primitive: yes
A Handle
is a user-friendly resource identifier.
Most Corteza resources (such as namespaces and modules) allow you to define a unique identifier that can be used instead of its system assigned ID.
The value must be an empty string or a string matching the following regular expression: /^[A-Za-z][0-9A-Za-z_\-.]*[A-Za-z0-9]$/
.
Expression | Value/result | Notes |
---|---|---|
|
|
Initializes a handle variable without value, defaults to empty ( |
|
|
Initializes a handle variable with a string value. |
|
|
Initializes a handle variable with an invalid string value. |
Array
Is primitive: no
An Array
contains a list of items, such as a list of users, records or modules.
Expression | Value/result | Notes |
---|---|---|
|
|
Initializes an array variable without value, defaults to empty ( |
|
|
Initializes an array variable with a list of integers. |
Reader
Is primitive: no
A Reader
represents a data stream (such as a file or a blob) that can be read or iterated over using the stream iterator.
A |
Expression | Value/result | Notes |
---|---|---|
|
|
|
|
|
Initializes a reader variable from the string. |
KV
Is primitive: no
A KV
is a hashmap that maps String
values to String
keys.
Expression | Value/result | Notes |
---|---|---|
|
|
Initializes a kv variable without value, defaults to empty ( |
|
|
Initializes a kv variable to the given set of keys and values. |
KVV
Is primitive: no
A KVV
is a hashmap that maps a set of String
values to String
keys.
Expression | Value/result | Notes |
---|---|---|
|
|
Initializes a kvv variable without value, defaults to empty ( |
|
|
Initializes a kvv variable to the given set of keys and values. |
Template
Is primitive: no
A Template
contains a template that can be used by the rendering engine.
Expression | Value/result | Notes |
---|---|---|
|
|
Initializes a template variable without value, defaults to empty. Refer to the object reference for details. |
|
|
Initializes a template variable with the given handle and template type. Refer to the object reference for details. |
Document
Is primitive: no
A Document
is a rendered Template.
It uses RenderOptions and RenderVariables in order to produce a document.
A |
RenderOptions
Is primitive: no
Expression | Value/result | Notes |
---|---|---|
|
|
Initializes a render options variable without value, defaults to empty ( |
|
|
Initializes a render options variable to the given object. |
EmailMessage
Is primitive: no
An EmailMessage
represents an email that is to be sent to the recipients.
The EmailMessage
type should not be constructed or interacted with directly.
It is suggested you use the predefined functions to manipulate it’s contents.
A new |
Role
Is primitive: no
A Role
contains a system role.
Expression | Value/result | Notes |
---|---|---|
|
|
Initializes a role variable without value, defaults to empty. Refer to the object reference for details. |
|
|
Initializes a role variable with the given handle. Refer to the object reference for details. |
User
Is primitive: no
A User
contains a system user.
Expression | Value/result | Notes |
---|---|---|
|
|
Initializes a user variable without value, defaults to empty. Refer to the object reference for details. |
|
|
Initializes a user variable with the given handle. Refer to the object reference for details. |
ComposeModule
Is primitive: no
A ComposeModule
contains a Low Code module.
The ComposeModule
type is mostly used when updating module fields or creating new records.
Expression | Value/result | Notes |
---|---|---|
|
|
Initializes a module variable without value, defaults to empty. Refer to the object reference for details. |
|
|
Initializes a module variable with the given handle. Refer to the object reference for details. |
ComposeNamespace
Is primitive: no
A ComposeNamespace
contains a Low Code namespace.
The ComposeNamespace
type is mostly used when interacting with namespace specific Low Code resources.
Expression | Value/result | Notes |
---|---|---|
|
|
Initializes a namespace variable without value, defaults to empty. Refer to the object reference for details. |
|
|
Initializes a namespace variable with the given handle. Refer to the object reference for details. |
ComposeRecord
Is primitive: no
A ComposeRecords
contains a Low Code record.
The ComposeRecords
type is mostly used when interacting with Low Code records, such as changing their values or converting them into email notifications.
A new |
ComposeRecordValues
Is primitive: no
A ComposeRecordValues
contains a set of Corteza record values.
This type is usually not used on it’s own but in the combination with ComposeRecord.
HttpRequest
Is primitive: no
A HttpRequest
contains an http Request (refer to the GO documentation for details regarding the signature).
The only difference between HttpRequest and go’s http.Request is the ability to buffer the request body. Once there is a first read done on the body, it will be buffered and from there on used if the body is empty (since it is a ReadCloser). |
Object reference
Type | Structure |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|