Problem/Motivation

As Varbase adopts ECA (Event - Condition - Action) for core workflow automation, a number of ECA models are now enabled by default to replace hard-coded event subscribers and custom hooks.
This transition improves maintainability, modularity, and allows future AI integrations.

However, after a fresh installation, the list of ECA models does not automatically subscribe to their respective events — resulting in inactive workflows until a manual rebuild is triggered.


#3537397: Add ECA: Event - Condition - Action and BPMN.iO modules to Varbase Core
#3543084: Enable more ECA: Event - Condition - Action integration modules by default in Varbase Core
#3543094: Enable ECA Workflow module by default in Varbase Workflow
#3543089: Enable AI ECA integration module by default in Varbase AI
#3543094: Enable ECA Workflow module by default in Varbase Workflow
#3547929: Add ECA Tamper Integration module to Varbase Core and Enable by default
#3549569: Add ECA Helper module and enable by default


#3548006: Add a User Login Notification ECA Model with one workflow sequence to send notification emails when users login
#3548011: Add a User Recertification ECA model with workflow sequences for role changes and inactive users
#3548025: Add an optional not enabled Redirect 403 to Login ECA Model with a ready workflow sequence
#3548019: Add a Draft Reminder ECA Model with workflow sequence to notify admins about outdated drafts
#3551835: Have a new Admin Change Role Notification ECA model as standalone workflow sequence
#3547922: Add Easy Email module to Varbase Email and Enable by default
#3548657: Add default Text editor for Email HTML Text format to CKEditor5

Steps to reproduce

Given on a fresh install of Varbase
Then the list of ECA Models will not auto-subscribe to events

Proposed resolution

  • Add a process Rebuild the state of subscribed events for ECA
  • An equivalent to running: drush eca:subscriber:rebuild

All ECA models are correctly subscribed to their corresponding events immediately after installation.
No manual Drush commands required.

Remaining tasks

  • ✅ File an issue about this project
  • ✅ Addition/Change/Update/Fix to this project
  • ✅ Testing to ensure no regression
  • ➖ Automated unit/functional testing coverage
  • ➖ Developer Documentation support on feature change/addition
  • ➖ User Guide Documentation support on feature change/addition
  • ➖ UX/UI designer responsibilities
  • ➖ Accessibility and Readability
  • ✅ Code review from 1 Varbase core team member
  • ✅ Full testing and approval
  • ✅ Credit contributors
  • ✅ Review with the product owner
  • ✅ Update Release Notes and Update Helper on new feature change/addition
  • ✅ Release varbase-10.1.0-beta1

Varbase update type

  • ✅ No Update
  • ➖ Optional Update
  • ➖ Forced Update
  • ➖ Forced Update if Unchanged

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • [#3550753] feat(eca): Added process to rebuild state of subscribed events for ECA models

Comments

rajab natshah created an issue. See original summary.

rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Title: Add a process Rebuild the state of subscribed events for ECA » Add process to rebuild state of subscribed events for ECA models
Issue summary: View changes

  • rajab natshah committed a4f47631 on 10.1.x
    [#3550753] feat(eca): Add process to rebuild state of subscribed events...

  • rajab natshah committed 7b284d94 on 10.1.x
    [#3550753] feat(eca): Add process to rebuild state of subscribed events...

rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Assigned: Unassigned » s.halawani
Issue summary: View changes
Status: Active » Needs review
Issue tags: +varbase-10.1.0-beta1
rajab natshah’s picture

Assigned: s.halawani » Unassigned
Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

rajab natshah’s picture

Issue summary: View changes

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.