Previous Topic: CA Process Automation System FunctionsNext Topic: absPath


Return Types

System functions returns values of several types. In a few cases, the return type depends on the input parameters or on whether the function is returning a “null”. In most cases, system functions return Java types rather than pure Javascript values. For instance, system functions that are described as returning a String are actually returning a Java.lang.String. Typically, you can ignore the difference between Java.lang.String and String. In some cases, this difference impacts behavior when executing and expression or script. In the case of typeof x, where x is a variable holding the returned value from a system function, the return type is “object”, rather than “string”.

For each system function return type, the following table describes the effect on the following variables:

System Function Return Type

Javascript Variable Type after Assignment

Dataset Variable Type Created

boolean

boolean

Boolean

C2OString

object

String

C2OValue

object

ValueMap

C2OValueArray

object

ValueMap

C2OValueMap

object

ValueMap

Date

object

Date

int

number

Integer

String

object

String

String []

object

String []

void

undefined/a

n/a