mirror of
https://github.com/VitexSoftware/multiflexi-event-processor.git
synced 2026-10-03 21:38:03 +00:00
Process incoming events with MultiFlexi
Eventor starts flow_run from webhook triggers, advances map/switch/runtemplate steps, and no longer depends on Node-RED for chain execution. Co-authored-by: Cursor <cursoragent@cursor.com> |
||
|---|---|---|
| debian | ||
| nbproject | ||
| src | ||
| tests/MultiFlexi | ||
| .env.example | ||
| .gitignore | ||
| .php-cs-fixer.dist.php | ||
| AGENTS.md | ||
| composer.json | ||
| composer.lock | ||
| eu.multiflexi.multiflexi_eventor.metainfo.xml | ||
| LICENSE | ||
| Makefile | ||
| multiflexi-eventor.svg | ||
| phpstan-default.neon.dist | ||
| phpunit.xml | ||
| README.md | ||
multiflexi-event-processor
Event-driven job triggering daemon for the MultiFlexi suite.
Overview
Bridges external webhook adapters (e.g. abraflexi-webhook-acceptor) with MultiFlexi's job execution engine:
- Reads unprocessed changes from adapter databases (
changes_cachetable) - Matches changes against configured EventRules and stored Node-RED flows
- Schedules MultiFlexi jobs via
multiflexi-cli/ advancesFlowInterpretersteps
Flow interpreter
Graphs designed in Node-RED are stored as flow / flow_version / flow_node /
flow_wire and executed here without Node-RED running (map, switch, delay,
RunTemplate wait). Legacy pairwise event_rule chaining remains available.
Installation
sudo apt install multiflexi-eventor
The daemon runs as multiflexi-eventor.service under the multiflexi user.
Configuration
Event sources and rules are managed via the MultiFlexi web UI (⚡ Events menu) or CLI:
# Create an event source
multiflexi-cli eventsource create --name "AbraFlexi Webhooks" --adapter_type abraflexi-webhook-acceptor --db_database webhooks_db
# Create an event rule
multiflexi-cli eventrule create --event_source_id 1 --evidence faktura-vydana --operation create --runtemplate_id 42
Development
make vendor # Install dependencies
make tests # Run PHPUnit tests
make cs # Fix coding standards
MultiFlexi
multiflexi-event-processor is part of the MultiFlexi suite.
License
MIT