How project-flogo/core works
Flogo Core is a library for creating and extending serverless and edge-microservice applications. The principal workflow is to define an application through the API, construct an engine, start the app and its triggers, then handle events by mapping trigger data and dispatching actions. The repository also provides data mapping and expression capabilities, contribution interfaces, resources, and runtime support. Edges are limited to relationships shown in the excerpts, SOURCE INDEX references, or README; unsampled implementations are represented by their known directories where appropriate.
Main entry points: handler.go Event handler · api.go Programmatic API · app.go Application model · engineimpl.go Engine lifecycle
Components 17
App creation
- Programmatic API
api/api.go - Application model
app/app.go
Runtime execution
- Engine lifecycle
engine/engineimpl.go - Action runner
engine/runner - Trigger lifecycle
app/app.go - Event handler
trigger/handler.go - Sequence handler
trigger/sequenceKeyHandler.go - App events
engine/event
Data processing
- Object mapper
data/mapper/object.go - Expressions
data/expression - Data model
data - App properties
data/property/manager.go
Contributions and resources
- Actions
action/action.go - Activities
activity/activity.go - Resources
app/resource/manager.go - Connection managers
support/connection/manager.go
Other components
- Application developer
Connections 20
- Application developer → Programmatic API: defines app
- Programmatic API → Engine lifecycle: creates engine
api/api.go - Engine lifecycle → Application model: constructs app
engine/engineimpl.go - Engine lifecycle → Action runner: selects runner
engine/engineimpl.go - Application model → Trigger lifecycle: creates and starts
app/app.go - Application model → Resources: loads resources
app/app.go - Application model → Connection managers: starts managers
app/app.go - Trigger lifecycle → Event handler: dispatches events
- Event handler → Object mapper: maps action data
trigger/handler.go - Event handler → Expressions: evaluates conditions
trigger/handler.go - Event handler → Action runner: runs action
trigger/handler.go - Event handler → Actions: dispatches action
trigger/handler.go - Sequence handler → Object mapper: maps action data
trigger/sequenceKeyHandler.go - Sequence handler → Action runner: runs action
trigger/sequenceKeyHandler.go - Object mapper → Expressions: builds mapping expressions
data/mapper/object.go - Object mapper → Data model: evaluates against scope
data/mapper/object.go - Event handler → App properties: reads property snapshot
trigger/handler.go - Engine lifecycle → App events: posts lifecycle events
- Programmatic API → Actions: supports contributions
- Programmatic API → Activities: supports contributions