eca

ECA.php
// web/modules/contrib/eca/src/Entity/Eca.php (simplified excerpt)

protected function isValidationDisabled(): bool {
  return $this->request()->query->get('eca_validation', '') === 'off';
}

public function getPluginCollections(): array {
  if ($this->isValidationDisabled()) {
    return [];
  }
  // Otherwise every referenced event/condition/action plugin is
  // instantiated here, throwing PluginNotFoundException if one
  // of them no longer exists.
  ...
}
hint.txt
# Delete URL — load this directly, don't click through from a listing page
/admin/config/workflow/eca/{eca_id}/delete?eca_validation=off
Redirect users with the role erdfisch to /admin/projects after login.

eca.eca.process_bvldndf.yml
langcode: en
status: true
dependencies:
  module:
    - eca_user
id: process_bvldndf
modeller: bpmn_io
label: 'Redirect erdfisch after login'
version: ''
weight: 0
events:
  Event_11gkfze:
    plugin: 'user:login'
    label: 'User login'
    configuration: {  }
    successors:
      -
        id: Activity_07ecpnf
        condition: Flow_0rquxvd
conditions:
  Flow_0rquxvd:
    plugin: eca_current_user_role
    configuration:
      negate: false
      role: erdfisch
gateways: {  }
actions:
  Activity_07ecpnf:
    plugin: action_goto_action
    label: 'Redirect to projects view '
    configuration:
      replace_tokens: false
      url: /admin/projects
    successors: {  }

23.05.2025 | Dominik Wille

ECA: Redirect by role after Login