docs/docs/en/flow-engine/event-flow.md
In FlowEngine, all interface components are event-driven. The behavior, interaction, and data changes of components are triggered by events and executed through a flow.
In FlowEngine, flows can be divided into two types:
In short: A static flow is a logic template defined on a class, while a dynamic flow is personalized logic defined on an instance.
In the FlowEngine configuration system, there are two ways to implement event logic:
Therefore, Linkage Rules ≈ Simplified Event Flow, and their core mechanisms are consistent.
Both Linkage Rules and Event Flows should use the same set of FlowActions. That is to say:
Conceptually, the core abstract relationship of FlowModel is as follows:
FlowModel
└── FlowDefinition
├── FlowEventDefinition
│ ├── Global Events
│ └── Local Events
└── FlowActionDefinition
├── Global Actions
└── Local Actions
FlowModel Represents a model entity with configurable and executable flow logic.
FlowDefinition Defines a complete set of flow logic (including trigger conditions and execution steps).
FlowEventDefinition Defines the trigger source of the flow, including:
FlowActionDefinition Defines the executable actions of the flow, including:
| Concept | Purpose | Scope |
|---|---|---|
| Static Flow | Flow logic defined in code | All instances of XXModel |
| Dynamic Flow | Flow logic defined on the interface | A single FlowModel instance |
| FlowEvent | Defines the trigger (when to trigger) | Global or local |
| FlowAction | Defines the execution logic | Global or local |
| Linkage Rule | Simplified encapsulation of event flow steps | Block, Action level |