Skip to content

feat(workflow): add WorkflowRunner for event-driven workflow firing#51

Merged
mpge merged 4 commits into
masterfrom
feat/workflow-runner
Apr 27, 2026
Merged

feat(workflow): add WorkflowRunner for event-driven workflow firing#51
mpge merged 4 commits into
masterfrom
feat/workflow-runner

Conversation

@mpge

@mpge mpge commented Apr 27, 2026

Copy link
Copy Markdown
Member

Recovers auto-closed #31 (base feat/workflow-executor squash-merged via #30). Rebased onto current master.

@mpge
mpge force-pushed the feat/workflow-runner branch from 6cbd662 to a8bb550 Compare April 27, 2026 01:48
mpge added 2 commits April 26, 2026 21:55
Ports the NestJS workflow-runner.service.ts to Elixir/Phoenix. Loads
active Workflows for a trigger event (in position order via Ecto),
evaluates conditions via WorkflowEngine, dispatches matches to
WorkflowExecutor, and writes a WorkflowLog row per Workflow considered.

- Honors stop_on_match (only when the workflow actually matches)
- Catches executor failures so one bad workflow never blocks the rest
  (failure stamped on the log row via error_message)
- Null/empty conditions match all tickets (NestJS parity)
- Returns per-workflow outcome tuples for caller inspection

Follow-up PR will add the PubSub listener that bridges
Escalated.PubSub ticket events into run_for_event.
@mpge
mpge force-pushed the feat/workflow-runner branch from 9191b87 to 4efba7c Compare April 27, 2026 01:55
@mpge
mpge merged commit c81df47 into master Apr 27, 2026
1 check passed
@mpge
mpge deleted the feat/workflow-runner branch April 27, 2026 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant