The AuditEvent component is used to generate custom events on a process instance. By default, the process engine generates events such as creation date and time, instance entered and left, instance reassigned, and so on. However, if you want to add custom events that pertain to a specific process instance, you can do so with this component.
The code in this example generates an audit event, including descriptive text for the event:
generate AuditEvent
using detail = "SLA violated"