Complex gateway in Camunda 8?

Will Camunda 8 implement Complex Gateway in the future? If so, are there any plans for doing so? If not, what are the reasons?

Hi @jamesxql, welcome to the forum! No, Camunda (neither 7 nor 8) support the complex gateway during execution. Web and Desktop Modeler support the symbol for diagramming, but it’s more useful for documentation that it is for execution. We don’t currently have plans to support it in the engine.

Do you have a use case for it? We’ve found that complex gateways are often not the best solution. If you have a use case, I’d be curious to learn what it is and maybe talk through some alternate BPMN patterns.

1 Like

@nathan.loding Thanks for reply!

For example, once two of the preceding three Expenditure Approval tasks have completed, trigger the Send task. Wait until the remaining task has completed before allowing the Send task to fire again.

The convergence of two or more branches (say m) into a single subsequent branch following a corresponding divergence earlier in the process model such that the thread of control is passed to the subsequent branch when n of the incoming branches have been enabled where n is less than m. Subsequent enablements of incoming branches do not result in the thread of control being passed on.

We need to implement a large number of similar processes, and we need complex gateways to help convergence. Any ideas to implement this scenario without complex gateways?

This is easy enough to implement with other symboles. There’s more than one way to do it. But here’s the way that I would implement it.

ComplexNotNeeded

1 Like

@Niall How should I automatically terminate the remaining activities when there have two answered?

The terminate event within the subprocess does this for you.

@Niall Thanks, I`ll try it

@jamesxql You can also try the multi instance marker and set an completion condition dynamically using process variables for each process.

1 Like

@aravindhrs’s suggestion is a really good one if all the tasks are the same and the number of them is dynamic.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.