runtime package

public struct AuthenticationContext

Represents the AuthenticationContext, populated with authenticated user information

Field Name Data Type Description Default Value
userId string
username string
groups string[] []
claims map []
scopes string[] []
authType string
authToken string
  • <AuthenticationContext> AuthenticationContext.<init>()

public struct CallFailedException

Field Name Data Type Description Default Value
message string
cause error[] []
  • <CallFailedException> CallFailedException.<init>()

public struct CallStackElement

Field Name Data Type Description Default Value
callableName string
packageName string
fileName string
lineNumber int
  • <CallStackElement> CallStackElement.<init>()

public struct IllegalStateException

Field Name Data Type Description Default Value
message string
cause error[] []
  • <IllegalStateException> IllegalStateException.<init>()

public struct InvocationContext

Represents the InvocationContext

Field Name Data Type Description Default Value
invocationId string
authenticationContext AuthenticationContext []
  • <InvocationContext> InvocationContext.<init>()

public struct NullReferenceException

Field Name Data Type Description Default Value
message string
cause error[] []
  • <NullReferenceException> NullReferenceException.<init>()

public function getCallStack() returns (CallStackElement[])

Return Variable Data Type Description
CallStackElement[]

public function getCurrentDirectory() returns (string)

Returns the current working directory.

Return Variable Data Type Description
string Current working directory or an empty string if the current working directory cannot be determined

public function getErrorCallStackFrame(error e) returns (CallStackElement)

Parameter Name Data Type Description
e error

Return Variable Data Type Description
CallStackElement

public function getFileEncoding() returns (string)

Returns the charset encoding used in the runtime.

Return Variable Data Type Description
string Encoding if it is available, an empty string otherwise

public function getInvocationContext() returns (InvocationContext)

Creates a InvocationContext instance

Return Variable Data Type Description
InvocationContext InvocationContext instance

public function getProperties() returns (map)

Returns all system properties.

Return Variable Data Type Description
map All system properties

public function getProperty(string name) returns (string)

Returns the value associated with the specified property name.

Parameter Name Data Type Description
name string Name of the property

Return Variable Data Type Description
string Value of the property if the property exists, an empty string otherwise

public function setProperty(string name, string value)

Adds the given name, value pair to the system properties.

Parameter Name Data Type Description
name string Name of the property
value string Value of the property

public function sleepCurrentWorker(int millis)

Halts the current worker for a predefined amount of time.

Parameter Name Data Type Description
millis int Amount of time to sleep in milliseconds