Problem/Motivation
Varbase Content Base enables the BPMN.iO modeler (bpmn_io) as the visual editor for ECA (Modeler API) models, including the two ECA models this recipe ships: "Activate Full content view mode for new node types" and "Redirect 403 to Login".
Workflow Modeler (drupal/modeler) is a newer, React-Flow-based editor for the same Modeler API models. It adds live execution replay ("Review flow") and opens all existing BPMN.iO-authored models with no migration: the model itself is stored as the eca.eca.* config entity, the editor only re-derives the diagram from it.
This recipe should ship the Workflow Modeler as the default editor going forward.
Steps to reproduce
- Install the Varbase Content Base recipe.
- Go to Admin > Configuration > Workflow > ECA (
/admin/config/workflow/eca) and edit either shipped model. - Note the model opens in the BPMN.iO editor, because
recipe.ymlenablesbpmn_ioand both models are taggedmodeler_id: bpmn_io.
Proposed resolution
- Enable
modelerinstead ofbpmn_ioinrecipe.yml. - Require
drupal/modeler(~1.0) instead ofdrupal/bpmn_io(~3) incomposer.json. - Retag the two shipped ECA models (
eca.eca.enable_full_view_mode_node_type.ymlandeca.eca.redirect_403_to_login.yml) tomodeler_id: workflow_modeler, and stop shipping the BPMN.iO raw diagram data (drop thedata: 'hash:...'line and theconfig/modeler_api.data_model.eca_bpmn_io_redirect_403_to_login.ymlBPMN 2.0 XML file, no longer needed once the editor re-derives the diagram from the config entity). bpmn_iostays available as a transitive dependency ofecafor sites that still want it, but is no longer enabled by this recipe.
This issue, and the patch attached to its merge request, were created with AI assistance (Claude Code), per the Drupal policy on the use of AI when contributing to Drupal.
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
- ❌ Reviewed by a human
- ❌ Code review by maintainers
- ❌ Full testing and approval
- ❌ Credit contributors
- ❌ Review with the product owner
- ❌ Update Release Notes
- ❌ Release
User interface changes
- The ECA model edit form now opens in the Workflow Modeler (React Flow based) instead of BPMN.iO.
API changes
- N/A
Data model changes
- The two shipped
eca.eca.*config entities change theirthird_party_settings.modeler_api.modeler_idfrombpmn_iotoworkflow_modeler; the BPMN.iO raw diagram data (data: 'hash:...'property and the companionmodeler_api.data_model.eca_bpmn_io_redirect_403_to_loginconfig object) is removed as it is no longer used.
Release notes snippet
- The Varbase Content Base recipe now ships the Workflow Modeler as the default ECA editor instead of BPMN.iO.
Issue fork varbase_content_base-3612486
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
rajab natshah✅ Released varbase-11.0.0-rc1