Scoped Workflow - error(String message, Object args)

Adds an error message to the log.

Table 1. Parameters
Name Type Description
message String The message to add to the log.
args Object Arguments to add to the message.
Table 2. Returns
Type Description
String The logged message

var loggedMessage = workflow.error("An error has occurred. ");