Previous Topic: lockResourceNext Topic: newValueMap


logEvent

The logEvent function inserts a custom message into the logs of a process instance.

Syntax

logEvent(level, category, msg)

Arguments

level (Int)

Specifies one of the following log levels:

4 = Error

3 = Warning

2 = Notice

1 = Normal

category (String) (this value is optional)

Specifies one of the following log categories:

msg (String)

Specifies the log message.

Return Values

No value returned (void).

Example

logEvent(1, "FLOW_CATEGORY", "Start New Hire Process has completed");