Context

An asynchronous JavaScript trigger action must notify the context object (ctx) of success or failure of the execution. The context object has appropriate functions for this.

success

Indicates successful execution.

ctx.success("Result");

error

Indicates unsuccessful execution.

ctx.error(TcHmi.Errors.ERROR);