| Crates.io | datasynth-ocpm |
| lib.rs | datasynth-ocpm |
| version | 0.2.1 |
| created_at | 2026-01-20 14:55:30.124762+00 |
| updated_at | 2026-01-24 21:46:10.519778+00 |
| description | Object-Centric Process Mining (OCPM) models and generators for synthetic data |
| homepage | |
| repository | |
| max_upload_size | |
| id | 2056738 |
| size | 198,259 |
Object-Centric Process Mining (OCPM) models and generators.
datasynth-ocpm provides OCEL 2.0 compliant event log generation:
Implements the Object-Centric Event Log standard:
| Element | Description |
|---|---|
| Events | Activities with timestamps and attributes |
| Objects | Business objects (PO, Invoice, Payment, etc.) |
| Object Types | Type definitions with attribute schemas |
| Relationships | Object-to-object relationships |
| Event-Object Links | Many-to-many event-object associations |
Create PO → Approve PO → Release PO → Create GR → Post GR →
Receive Invoice → Verify Invoice → Post Invoice → Execute Payment
Create SO → Check Credit → Release SO → Create Delivery →
Pick → Pack → Ship → Create Invoice → Post Invoice → Receive Payment
use datasynth_ocpm::{OcpmGenerator, P2pDocuments};
let mut generator = OcpmGenerator::new(seed);
let documents = P2pDocuments::new("PO-001", "V-001", "1000", amount, "USD");
let result = generator.generate_p2p_case(&documents, start_time, &users);
use datasynth_ocpm::export::{Ocel2Exporter, ExportFormat};
let exporter = Ocel2Exporter::new(ExportFormat::Json);
exporter.export(&event_log, "output/ocel2.json")?;
Apache-2.0 - See LICENSE for details.