feat(wfe-core): add models, traits, and error types
Core domain models: WorkflowInstance, ExecutionPointer, WorkflowDefinition, WorkflowStep, Event, EventSubscription, ScheduledCommand, ExecutionError, LifecycleEvent, PollEndpointConfig. All serde-serializable. Provider traits: PersistenceProvider (composite of WorkflowRepository, EventRepository, SubscriptionRepository, ScheduledCommandRepository), DistributedLockProvider, QueueProvider, SearchIndex, LifecyclePublisher, WorkflowMiddleware, StepMiddleware, WorkflowRegistry. StepBody trait with StepExecutionContext for workflow step implementations. WorkflowData marker trait (blanket impl for Serialize + DeserializeOwned).
This commit is contained in:
11
wfe-core/src/lib.rs
Normal file
11
wfe-core/src/lib.rs
Normal file
@@ -0,0 +1,11 @@
|
||||
pub mod builder;
|
||||
pub mod error;
|
||||
pub mod executor;
|
||||
pub mod models;
|
||||
pub mod primitives;
|
||||
pub mod traits;
|
||||
|
||||
#[cfg(any(test, feature = "test-support"))]
|
||||
pub mod test_support;
|
||||
|
||||
pub use error::{Result, WfeError};
|
||||
Reference in New Issue
Block a user