1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//! # Actflow
//!
//! Actflow is a lightweight, event-driven workflow engine written in Rust.
//! It is designed to be embedded in applications to orchestrate complex business logic.
//!
//! ## Core Features
//!
//! - **Event-Driven Architecture**: Built on a robust event bus for high decoupling and scalability
//! - **Async Execution**: Powered by `tokio` for high-concurrency workflow execution
//! - **Pluggable Storage**: Supports in-memory storage (testing) and PostgreSQL (production)
//! - **Flexible Workflow Definition**: Define workflows using JSON with various node types
//!
//! ## Quick Start
//!
//! ```rust,ignore
//! use actflow::{EngineBuilder, WorkflowModel};
//!
//! let engine = EngineBuilder::new().build().unwrap();
//! engine.launch();
//!
//! // Deploy and run workflow
//! let workflow = WorkflowModel::from_json(json_str)?;
//! engine.deploy(&workflow)?;
//! let process = engine.build_process(&workflow.id)?;
//! engine.run_process(process)?;
//! ```
use ;
pub use EngineBuilder;
pub use Engine;
pub use ActflowError;
pub use *;
pub use *;
pub use ;
/// Result type alias for Actflow operations.
pub type Result<T> = Result;
/// Thread-safe shared lock wrapper using Arc<RwLock<T>>.
pub type ShareLock<T> = ;