
admin.groupTraceEvent( event-id as String ) as element(gr.event)
This function constructs an event element for the specified event name.
| Parameters | |
|---|---|
| event-id | The exact name of the trace event. |
const admin = require('/MarkLogic/admin.xqy');
admin.groupTraceEvent("CPF onStateEnter")
//returns the event element for the CPF on state enter trace event