How JavAI Workflow works: Core Concepts
mainJavAI Workflow is a stateful, graph-based engine for building agentic AI systems in Java. It uses a directed graph to orchestrate complex workflows, allowing for cycles, loops, and conditional logic. The system is built around three primary abstractions:
- Node: The smallest unit of work. A node encapsulates a specific task or function that processes a stateful bean and updates it. Nodes can be synchronous or asynchronous (streaming).
- Module: A reusable collection of nodes grouped to perform a higher-level function. Modules can be decoupled and integrated into different workflows.
- Workflow: The top-level directed graph consisting of nodes, modules, and edges. It manages state transitions and ensures nodes process the stateful bean in the correct sequence.