Skip to main content

acts_next/
lib.rs

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