Workflow - fireEvent(GlideRecord eventRecord, String eventName)

Fires the named event on the input record.

Used in Activities Approval Coordinator, Timer, Lock, and some others.

Table 1. Parameters
Name Type Description
eventRecord GlideRecord The event record.
eventName String The name of the event to send to the executing workflow.
Table 2. Returns
Type Description

////where current is a task record with a workflow context
      var w = new Workflow(); 
      w.fireEvent(current, 'execute');