acts/
lib.rs

1//! A lightweight, fast, tiny, extensiable workflow engine
2
3#![doc = include_str!("../README.md")]
4
5mod adapter;
6mod builder;
7mod cache;
8mod config;
9mod engine;
10mod env;
11mod error;
12mod event;
13mod export;
14mod model;
15mod plugin;
16mod scheduler;
17mod signal;
18mod store;
19mod utils;
20
21#[cfg(test)]
22mod tests;
23
24use std::sync::Arc;
25use std::sync::RwLock;
26
27pub use builder::Builder;
28pub use config::Config;
29pub use engine::Engine;
30pub use env::ActModule;
31pub use error::{ActError, Error};
32pub use event::{Action, Event, Message, MessageState};
33pub use export::{Channel, ChannelOptions, Executor, ExecutorQuery, Extender};
34pub use model::*;
35pub use plugin::ActPlugin;
36pub use signal::Signal;
37pub use store::{data, DbSet, PageData, Query, StoreAdapter};
38pub type Result<T> = std::result::Result<T, ActError>;
39
40pub(crate) use scheduler::{Context, NodeKind};
41pub(crate) type ShareLock<T> = Arc<RwLock<T>>;
42pub(crate) use scheduler::{ActTask, TaskState};