bpm-engine 0.1.0

Lightweight embeddable BPM runtime for long-running, stateful workflows with tokens, timers, Saga compensation, and crash recovery
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::model::ProcessInstance;

pub fn validate(instance: &mut ProcessInstance) {
    println!("🔧 validating...");
    instance
        .variables
        .insert("valid".into(), "true".into());
}

#[allow(dead_code)]
pub fn execute(_instance: &mut ProcessInstance) {
    println!("🚀 executing business logic");
}