Chain action for AND condition vs Gateway

Created on 14 February 2025, 10 days ago

When using AND Conditions, is it equivalent to using the BPMN Gateway element to connect the individual conditions, or should I use the "Chain action for AND condition" element?

I searched the ECA documentation page for the topic of Gateway, but I couldn't find anything, and about the AND "Action" element, only this much:
https://ecaguide.org/plugins/eca/base/actions/eca_void_and_condition/

If using the Gateway element is equivalent, then it won't cause any problems later if the Gateway element is given some real routing functionality in a new ECA version?

Illustration attached.

💬 Support request
Status

Active

Version

2.1

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @tetatu
  • 🇩🇪Germany jurgenhaas Gottmadingen

    This is a great question. Gateways will, in fact, later change their behaviour, in particular if there are multiple successors to a gateway. For single successors, there won't be any change.

    We will take care of this breaking change when we implement the real gateway feature such that there will be a setting to keep legacy behaviour for existing sites, or for existing ECA models.

  • So we avoid using Gateway and only use "Chain action for AND condition" for And Condition conditions.

    It is reassuring that every ECA update will be done in a way that will not break previous Models, so you don't have to check every function of every Model again and again after every ECA update to see if something has broken.

    Thank you for the attentive development!

  • 🇩🇪Germany jurgenhaas Gottmadingen

    It is reassuring that every ECA update will be done in a way that will not break previous Models

    We try hard, and we have good test coverage as well. However, for our own enterprise projects, we do implement Cypress E2E tests for all our ECA models to ensure that they always create the same result. I'd encourage everyone to do the same if their application is in any way business relevant.

  • 🇩🇪Germany jurgenhaas Gottmadingen
Production build 0.71.5 2024