Skip to main content

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

ParameterTypeDescription
graphExecutionGraphThe completed execution graph.
options?ExecutionEventOptionsOptional process mining context, semantic context, and violations.

Returns

ExecutionEvent

A structured ExecutionEvent.

Example

const event = createExecutionEvent(graph, {
processContext: { variant: 'A→B→C', conformanceScore: 0.9, isAnomaly: false },
semantic: { intent: 'daily-rebalance', trigger: 'cron' },
});