An Event-Based Framework for Process Inference