๐ zeba_academy_auto_flow
Reusable workflow automation engine for Flutter โ build powerful trigger-based pipelines, automate logic flows, and debug execution visually.
โจ Features
โ Define reusable workflows โ Trigger-based execution system โ Automation pipelines with sequential steps โ Lightweight and scalable architecture โ Debug logging system โ Visual flow debugging support
๐ฆ Installation
Add this to your pubspec.yaml:
dependencies:
zeba_academy_auto_flow: ^0.0.1
๐ Getting Started
import 'package:zeba_academy_auto_flow/zeba_academy_auto_flow.dart';
void main() async {
final context = FlowContext();
final engine = FlowEngine();
final pipeline = FlowPipeline();
pipeline.addNode(
FlowNode(
id: "step1",
action: (ctx) async {
print("Step 1 executed");
ctx.set("value", 10);
},
),
);
pipeline.addNode(
FlowNode(
id: "step2",
action: (ctx) async {
print("Step 2 executed with ${ctx.get("value")}");
},
),
);
final trigger = FlowTrigger(
name: "start_trigger",
condition: (ctx) => true,
pipeline: pipeline,
);
engine.registerTrigger(trigger);
await engine.run(context);
}
๐ง Core Concepts
๐น FlowContext
Stores shared state across the workflow.
๐น FlowNode
Represents a single executable step.
๐น FlowPipeline
Chains multiple nodes into a reusable workflow.
๐น FlowTrigger
Executes pipelines based on conditions.
๐น FlowEngine
Manages and runs all triggers.
๐น FlowDebugger
Tracks logs for debugging and visualization.
๐งช Testing
Run tests using:
flutter test
๐ Use Cases
- ๐ Automation pipelines
- โ๏ธ Background workflow execution
- ๐ Event-driven systems
- ๐งฉ Modular business logic orchestration
- ๐ง Low-code / no-code builders
๐ฅ Roadmap
Conditional branching (if/else)Parallel executionRetry & error handlingJSON workflow builderDrag & drop visual flow editorRemote config support
๐ค Contributing
Contributions are welcome! Feel free to open issues and submit pull requests.
๐ License
This project is licensed under the GNU General Public License v3.0 (GPL-3.0).
๐จโ๐ป About Me
โจ Iโm Sufyan bin Uzayr, an open-source developer passionate about building and sharing meaningful projects. You can learn more about me and my work at sufyanism.com or connect with me on Linkedin
๐ Your all-in-one no-bloat hub!
๐ Explore cutting-edge resources in coding, tech, and development at zeba.academy and code.zeba.academy. Empower yourself with practical skills through curated directives, real-world projects, and hands-on experience. Level up your tech game today! ๐ปโจ
Zeba Academy is a learning platform dedicated to coding, technology, and development.
โก Visit our main site: https://zeba.academy โก Explore hands-on courses: https://code.zeba.academy โก YouTube: https://www.youtube.com/@zeba.academy โก Instagram: https://www.instagram.com/zeba.academy/
โค๏ธ Support
If you like this project, consider giving it a โญ on GitHub!
Thank you for visiting!