Skip to content
Rehan Iftikhar edited this page Jul 15, 2012 · 1 revision

TaskResponse

When a task emits an "eval" event, the second parameter in the callback in an instance of a TaskResponse object. It holds information about the task's evaluation.

  • getEvaluation() (String) - The last evaluated expression from the task's code.
  • getGlobals() (JSON Object) - The global object after the task was evaluated.
  • getTaskId() (String) - The task's UUID
  • isError() (Boolean) - The task threw an error during evaluation. The exact error can be found in getEvaluation().
Clone this wiki locally