Skip to main content

checkConformance()

checkConformance(graph, model): ConformanceReport

Defined in: process-mining.ts:326

Compare a single execution graph against a discovered process model.

Classifies deviations into three categories:

  • unexpected-transition: exists in the graph but not in the model
  • missing-transition: exists in the model with probability > 0.5 but not in the graph
  • low-frequency-path: exists in both but model probability < 0.1

Parameters

ParameterTypeDescription
graphExecutionGraphThe execution graph to check.
modelProcessModelThe process model to check against.

Returns

ConformanceReport

A conformance report with score, deviations, and conformance flag.

Example

const report = checkConformance(newRun, model);
if (!report.isConforming) {
console.log(`Conformance: ${(report.conformanceScore * 100).toFixed(0)}%`);
for (const d of report.deviations) console.log(d.message);
}