Skip to main content
Main Image
Bild
Animated ECA model in BPMN.io
November 22, 2022

Drupal ECA wins at German/Austrian Splash Awards 2022

by Jürgen Haas
Bild
Splash Award Logo DE/AT

Summary

The complete power of Drupal is also accessible to all site builders with ECA and BPMN UI to automate processes and customize Drupal's behaviour (hooks) without programming.

Project description

ECA is a Drupal community project, started by LakeDrops, which rebooted the enormously popular Rules module from the pre-Symfony era and developed a technologically state-of-the-art, production-ready and scalable solution within 11 months. Shortly after the start of the project, OpenCampus GmbH from Munich joined the project, as they themselves had an almost congruent plan for their own products with the already existing prototype of ECA and wanted to start.

Bild
Logos from LakeDrops and OpenCampus

The videos can be found here: https://tube.tchncs.de/c/eca/videos

The Drupal experts from LakeDrops and OpenCampus, supplemented by other freelancers from the Drupal community, worked with high-pressure and clear goals (see next section) in mind almost day and night and were able to release the long-awaited version 1.0.0 in July 2022.

Countless talks and workshops at Drupal Meetups and Camps all over the world already showed during the development of ECA and its add-on modules how eagerly the whole Drupal community was waiting for exactly this solution. And barely 2 months after the official launch, hundreds of Drupal sites are already using this project. The feedback in the issue queue, on Slack and other channels is overwhelming and consistently positive.

Project goals and deliverables

The original objective arose from a customer project to migrate a very complex intranet from Drupal 7 to Drupal 9. All Drupal 7 components that were still needed were also available for Drupal 9 - only the Rules module, which was used extremely extensively in Drupal 7, was still in an alpha state that did not inspire much confidence.

After repeated analysis of the Rules module, we came to the conclusion together with the customer that Rules could not be completed for Drupal 9 with the present architecture. Instead, an entirely new approach based on the now existing Symfony framework was needed.

Another objective was to separate the processor from the user interface. Thus, the processor needs its own config format, from which it receives the instructions to be executed in the background during live operation of the Drupal site. The performance plays the decisive role. This should in no case be worse than that of a custom module to be written alternatively.

The user interface should be developed separately, if possible, and thus be interchangeable. The UI should implement a standard that is independent of Drupal, so that as many stakeholders as possible can be involved in the process of configuration, review and maintenance of the rules and regulations at the customer. One such standard for describing business processes is BPMN, which is globally recognized and for which there are extensive tools that can be integrated.

Long-term maintainability and easy extensibility were important concerns for both the customer and the development team. In this context, one of the most important architectural decisions was made: ECA must not have any dependencies other than Drupal Core and should use all existing APIs, i.e. not re-develop what already exists.

All of these targets were met in just 11 months of development:

  • Provide an upgrade path for all Drupal 7 sites that previously could not upgrade due to missing Rules module
  • State-of-the-art software architecture in the Symfony context
  • Best possible test coverage
  • Full feature set for all events, conditions and actions available in Drupal
  • The ECA module has no dependency other than Drupal Core
  • Around ECA there is a fast-growing ecosystem already a few weeks after the 1.0.0 release with further modules, which integrate ECA with important contrib modules and make them available in ECA
  • For the UI, a fully functional BPMN modeller could be integrated into Drupal with bpmn.io, which saves all its models in the ECA config format
  • Even a second modeller is already available, which works in a very simplified way using the Drupal Form API, thus supporting the claim that the ECA processor is not only completely separated from the UI, but that the UI is also interchangeable

In addition to this complete goal achievement, it also became clear to us during the project that we had achieved something else unintended with ECA and its ecosystem: ECA and bpmn.io together allow the complete customization, extension and automation of all Drupal capabilities without any programming. This means that Drupal is now also moving into the realm of "Low Code - No Code" - a requirement that is not only modern, but also fully in line with Drupal's strategic direction since the last Dries note: empowering site builders and giving them tools to make their jobs easier.

Challenges

The biggest hurdle before the project began was whether it would really be feasible not only to develop a replacement for the very extensive Rules module, but also to get it to a production-ready level and keep it there. However, when we succeeded in building a working prototype in just a few weeks thanks to existing components, the decision was easy.

The pandemic presented another challenge. The development team, some of whom did not even know each other beforehand, did not meet in person even once during the entire project. The coordination of the development ran completely via the issue queue, supplemented by video conferences every 2 weeks. This was not free of conflicts at times, which is more likely to happen in such a work environment than in face-to-face environments. But even these hurdles were overcome, and all participants reported very helpful experiences and learning effects in this regard afterwards.

Community contributions

The complete project is a community project. However, it is worth listing the individual components here:

Why should this project win the Splash Awards?

This project is unique in many ways and serves as an encouraging example of the power of Drupal and the community. Not only was it possible to complete about 3,000 hours of development work in just 11 months to a finished solution without endless budget negotiations beforehand, but 2 companies - LakeDrops and OpenCampus - teamed up to make this project straightforward and completely open-source on drupal.org.

This added value of surely half a million Euros and more, is not only a monetary gain for Drupal, but also solves another and more and more urgent problem: As of today, well over 150,000 Drupal 7 sites are still using the Rules module and by far the largest part could not yet migrate to Drupal 9 due to the lack of Rules support. This blockade will be solved by this project and should be very helpful for the whole Drupal ecosystem.

Bild
SplashAward 2022 Trophy - back

Credit: This application was originally published in German on the Splash Award website and got re-published here with kind permission.

Tags

Tools

Comments

Ande (not verified)

Hi,
Great work! I will right away start trying to implement ECA to my D10 project.

Wed, 15.02.2023 - 00:02 Permalink

Add new comment

Klartext

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
CAPTCHA