Problem
Rules module is great, and covers many actions, but also has some limitations, where ECA (which got included in Starshot Project) can be a viable alternative.
There could even be situations where both modules could be used on the same project?
Proposed solution
Add a table on the project page (https://www.drupal.org/project/rules) highlighting the differences between Rules and ECA.
Rules and ECA, overlaps and differences
| Rules | ECA | |
|---|---|---|
| User interface | User friendly UI | Very complex |
| Use cases | Covers many actions | Covers all actions |
| Sustainability | Requires external documentation | Self-documenting in models |
| Etc | [...] | [...] |
Comments
Comment #2
tr commentedComment #3
gagarine commentedAhah cool.
Comment #4
ressaIt looks like the number of Rules installations for Drupal 10 has stalled at ~14.000. ECA usage is growing rapidly (currently at ~4.000) and could surpass 10.000 later this year, with the current growth rate.
ECA was just included in the Starshot project (see Starshot should include ECA, to allow custom business logic to be implemented in the admin UI #99) and is under heavy development. Rules on the other hand:
From #3456430: Update 10.3 release notes to indicate Rules module is not compatible.
Would it make sense to add a more prominent text above the fold on the project page (https://www.drupal.org/project/rules) highlighting the existence of ECA, to guide Drupal 11 users to that project? Perhaps add a block with this text at the very top of the project page?
Comment #5
ressaComment #6
ressaComment #7
tr commentedComment #8
ressaComment #9
tr commentedComment #10
anybodyWhy is ECA not listed as alternative? Drupal is a community project and we should help each other to find the best possible solution. Could you explain the reasons @tr?
Comment #11
ressaUpdating the issue text, since Rules is in a much better condition now, with a growing user base at ~18.000 Drupal 10/11 installs, and is also now Drupal 11 ready. Thank you @tr :)
Comment #12
ressaI just tried Rules in Drupal 11 -- it works perfectly, and I created my first simple rule, redirecting and showing a message in no time. Awesome!
The Rules user interface is so much easier than ECA, which is extremely complicated to use.
How about a table, highlighting differences between them, like I added in the Issue Summary? (copied from Menu Migration)
Comment #13
ressaUpdating title and Issue Summary.
Comment #14
w01f commented+1 for at least adding ECA as an alternative on the Rules description page. Also agree an easy to understand breakdown of pros/cons and key differences would be great for new Drupal users (or even old ones).
Comment #15
w01f commentedComment #16
ressaSounds great @w01f, you and @anybody should feel free to expand the list with more items :)
Comment #17
w01f commented@jurgenhaas, hey Jurgen - would you or another ECA maintainer be able to help build out the above comparison table to help describe the differences between the Rules and ECA modules for new (and existing) implementers/decision makers?
Comment #18
w01f commentedComment #19
freelockSimilar question on the ECA queue - #3498600: A honest comparison / contrast of ECA vs Rules?.
I Just turned most of my response into a blog post, here: https://www.freelock.com/blog/john-locke/2025-01/ask-freelock-eca-vs-rules ... would love any comments people have on that, especially from people who have used Rules recently.
Comments there are now auto-moderated by AI -- if you leave a relevant comment, it should get automatically published within 5 minutes!
@w01f I wonder if you could get a reasonable starting place on a comparison table by asking Claude or something for one...
Comment #20
w01f commented@freelock Hey John, I haven't changed any of the Rules on older sites in a while, haven't used Rules since they had that semi-recent overhaul to be D10/11 compatible, and am just getting started with ECA myself.
I was considering myself as more one of the eager target audience for this comparison information than one of the progenitor founts of existing knowledge for its creation... though I can contribute to a table when I find time to learn ECA better myself.