createExecutionEvent()
createExecutionEvent(
graph,options?):ExecutionEvent
Defined in: event-emitter.ts:48
Create a structured ExecutionEvent from a completed execution graph.
Pure function — no side effects. The returned event is self-describing: it contains all context needed to understand the execution without reading the original graph.
Parameters
| Parameter | Type | Description |
|---|---|---|
graph | ExecutionGraph | The completed execution graph. |
options? | ExecutionEventOptions | Optional process mining context, semantic context, and violations. |
Returns
A structured ExecutionEvent.
Example
const event = createExecutionEvent(graph, {
processContext: { variant: 'A→B→C', conformanceScore: 0.9, isAnomaly: false },
semantic: { intent: 'daily-rebalance', trigger: 'cron' },
});