bpm-engine 0.1.0

Lightweight embeddable BPM runtime for long-running, stateful workflows with tokens, timers, Saga compensation, and crash recovery
//! Rust BPM Engine — library for embedding the BPM runtime.
//!
//! Use this crate to run workflows from your binary or examples:
//! - Define a [ProcessDefinition](model::ProcessDefinition) (nodes, edges, start).
//! - Create an [EngineContext](engine::EngineContext) with repos (e.g. [InstanceRepo](persistence::sqlite::InstanceRepo)).
//! - Run [BpmEngine::run](engine::BpmEngine::run) with [EngineEvent](engine::EngineEvent) (e.g. ProcessStarted, UserTaskCompleted).

pub mod api;
pub mod domain;
pub mod engine;
pub mod events;
pub mod model;
pub mod persistence;
pub mod recovery;
pub mod legacy_engine;
pub mod service;

/// Legacy db API: re-export from persistence so existing callers still work.
pub mod db {
    pub use crate::persistence::sqlite::InstanceRepo;
}