# Process stuck at Inclusive Gateway

**URL:** <https://forum.camunda.io/t/process-stuck-at-inclusive-gateway/8939>\
**Category:** Discussion & Questions\
**Tags:** process-engine\
**Created:** [September 17, 2018, 10:11am UTC](https://forum.camunda.io/t/process-stuck-at-inclusive-gateway/8939 "2018-09-17T10:11:09Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![dar88rm](https://forum.camunda.io/user_avatar/forum.camunda.io/dar88rm/32/2074_2.png) [@dar88rm](https://forum.camunda.io/u/dar88rm)\
**Post date:** [September 17, 2018, 10:11am UTC](https://forum.camunda.io/t/process-stuck-at-inclusive-gateway/8939/1 "2018-09-17T10:11:09Z")

</div>

Hi all,

I have a process with an inclusive gateway inside a parallell gateway. At the end of the parallel, the process can go back to the start (please see attachment).  
When the conditions of all outgoing sequence flows from the inclusive gateway are true all works fine.  
When just a condition is true (i.e. variable ‘type’ is equal to ‘2’), the process gets stuck at the join inclusive gateway.

What am I doing wrong?  
I’m using the 7.9.0 version, I would be grateful for any hints.

Dario

[diagram\_2.bpmn](https://forum.camunda.io/uploads/default/original/2X/8/894b0cdc62a02eaea45f62612fc5171523159924.bpmn) (14.8 KB)

 ![diagram_2](https://forum.camunda.io/uploads/default/original/2X/b/bad247540ef2d290187feebdda4696f28b751366.png)

---

<div class="post-metadata">

**Author:** ![dar88rm](https://forum.camunda.io/user_avatar/forum.camunda.io/dar88rm/32/2074_2.png) [@dar88rm](https://forum.camunda.io/u/dar88rm)\
**Post date:** [September 19, 2018, 9:41am UTC](https://forum.camunda.io/t/process-stuck-at-inclusive-gateway/8939/3 "2018-09-19T09:41:18Z")

</div>

No one has any idea?  
I had to modify my process for now.

---

<div class="post-metadata">

**Author:** ![thorben](https://forum.camunda.io/user_avatar/forum.camunda.io/thorben/32/78_2.png) [@thorben](https://forum.camunda.io/u/thorben)\
**Post date:** [September 20, 2018, 1:33pm UTC](https://forum.camunda.io/t/process-stuck-at-inclusive-gateway/8939/4 "2018-09-20T13:33:57Z")

</div>

Sounds like a bug in the inclusive gateway implementation, I guess triggered by the loop in the sequence flow.

Could you please write a test case that reproduces the problem and share it on github? You can use [https://github.com/camunda/camunda-engine-unittest](https://github.com/camunda/camunda-engine-unittest) to get started.

---

<div class="post-metadata">

**Author:** ![dar88rm](https://forum.camunda.io/user_avatar/forum.camunda.io/dar88rm/32/2074_2.png) [@dar88rm](https://forum.camunda.io/u/dar88rm)\
**Post date:** [September 20, 2018, 2:15pm UTC](https://forum.camunda.io/t/process-stuck-at-inclusive-gateway/8939/5 "2018-09-20T14:15:18Z")

</div>

here is the test case: [https://github.com/dar88rm/InclusiveGatewayTestCase](https://github.com/dar88rm/InclusiveGatewayTestCase)

---

<div class="post-metadata">

**Author:** ![Bora](https://forum.camunda.io/letter_avatar_proxy/v4/letter/b/e56c9b/32.png) [@Bora](https://forum.camunda.io/u/Bora)\
**Post date:** [September 22, 2018, 8:59am UTC](https://forum.camunda.io/t/process-stuck-at-inclusive-gateway/8939/6 "2018-09-22T08:59:24Z")

</div>

@thorben: I might have encountered similar problem, by nesting (and even not yet looping) the inclusive gateways. I have two inclusive gateways nested one within the other and it seems stuck waiting for the merge at a wrong place (to me; of course it might be doing something wrong).  
I enclose the bpmn process and the screenshot where it is stuck with variables. Will you want/need a testcase as well, please?

 ![Camunda%20Inclusive%20Problem](https://forum.camunda.io/uploads/default/original/2X/7/70be56943dd6b3043a45713d066cb8f8aa30be2a.png)[eddie\_test\_cycles.bpmn](https://forum.camunda.io/uploads/default/original/2X/c/ce9a224e7385a645978da94255e3ee52e8d8e79a.bpmn) (34.5 KB)

---

<div class="post-metadata">

**Author:** ![vermauv](https://forum.camunda.io/user_avatar/forum.camunda.io/vermauv/32/6398_2.png) [@vermauv](https://forum.camunda.io/u/vermauv)\
**Post date:** [September 25, 2018, 6:04am UTC](https://forum.camunda.io/t/process-stuck-at-inclusive-gateway/8939/7 "2018-09-25T06:04:28Z")

</div>

+1 with the issue,

Although I had to redesign the diagram without the inclusive gateways, I found that the `GET /task` do not show any tasks if they are stuck around the gateways, they might be in the job queue `GET /job`

---

<div class="post-metadata">

**Author:** ![thorben](https://forum.camunda.io/user_avatar/forum.camunda.io/thorben/32/78_2.png) [@thorben](https://forum.camunda.io/u/thorben)\
**Post date:** [September 25, 2018, 2:30pm UTC](https://forum.camunda.io/t/process-stuck-at-inclusive-gateway/8939/8 "2018-09-25T14:30:56Z")

</div>

> [@dar88rm](#):
>
> here is the test case: [GitHub - dar88rm/InclusiveGatewayTestCase: Camunda Inclusive Gateway test](https://github.com/dar88rm/InclusiveGatewayTestCase)

Thanks for the test, I was able to track down the root problem. In your example, the merging inclusive gateway waits for at least one the tokens at the merging parallel gateway to arrive via the second incoming sequence flow of the inclusive gateway. While this is generally possible, it is not correct according to the spec. I raised bug issue [https://app.camunda.com/jira/browse/CAM-9367](https://app.camunda.com/jira/browse/CAM-9367).

General advice: If you can avoid the inclusive gateway, do it.

Cheers,  
Thorben

---

<div class="post-metadata">

**Author:** ![thorben](https://forum.camunda.io/user_avatar/forum.camunda.io/thorben/32/78_2.png) [@thorben](https://forum.camunda.io/u/thorben)\
**Post date:** [September 25, 2018, 2:31pm UTC](https://forum.camunda.io/t/process-stuck-at-inclusive-gateway/8939/9 "2018-09-25T14:31:40Z")

</div>

> [@Bora](#):
>
> @thorben: I might have encountered similar problem, by nesting (and even not yet looping) the inclusive gateways. I have two inclusive gateways nested one within the other and it seems stuck waiting for the merge at a wrong place (to me; of course it might be doing something wrong).
> 
> I enclose the bpmn process and the screenshot where it is stuck with variables. Will you want/need a testcase as well, please?

Please check if [https://app.camunda.com/jira/browse/CAM-9367](https://app.camunda.com/jira/browse/CAM-9367) might fit your problem. If not, please write a minimal test case that reproduces the problem.

Cheers,  
Thorben

---

<div class="post-metadata">

**Author:** ![thorben](https://forum.camunda.io/user_avatar/forum.camunda.io/thorben/32/78_2.png) [@thorben](https://forum.camunda.io/u/thorben)\
**Post date:** [September 25, 2018, 2:33pm UTC](https://forum.camunda.io/t/process-stuck-at-inclusive-gateway/8939/10 "2018-09-25T14:33:52Z")

</div>

> [@vermauv](#):
>
> I found that the GET /task do not show any tasks if they are stuck around the gateways, they might be in the job queue GET /job

A _task_ in Camunda is an instance of a user task. It is expected that there is no task when there is a token waiting at an inclusive gateway. The best API to inspect the state of a process instance is the activity instance API, see [Get Activity Instance | docs.camunda.org](https://docs.camunda.org/manual/7.9/reference/rest/process-instance/get-activity-instances/).

---

<div class="post-metadata">

**Author:** ![vermauv](https://forum.camunda.io/user_avatar/forum.camunda.io/vermauv/32/6398_2.png) [@vermauv](https://forum.camunda.io/u/vermauv)\
**Post date:** [September 25, 2018, 2:42pm UTC](https://forum.camunda.io/t/process-stuck-at-inclusive-gateway/8939/11 "2018-09-25T14:42:06Z")

</div>

My bad, Thanks for the info 🙂

---

<div class="post-metadata">

**Author:** ![dar88rm](https://forum.camunda.io/user_avatar/forum.camunda.io/dar88rm/32/2074_2.png) [@dar88rm](https://forum.camunda.io/u/dar88rm)\
**Post date:** [October 15, 2018, 3:01pm UTC](https://forum.camunda.io/t/process-stuck-at-inclusive-gateway/8939/12 "2018-10-15T15:01:34Z")

</div>

Any news about this issue?

---

<div class="post-metadata">

**Author:** ![system](https://forum.camunda.io/uploads/default/original/3X/5/8/58d50142eacca605d35cb1ef9e6b86ae85f49436.png) [@system](https://forum.camunda.io/u/system)\
**Post date:** [January 30, 2024, 11:22am UTC](https://forum.camunda.io/t/process-stuck-at-inclusive-gateway/8939/13 "2024-01-30T11:22:51Z")

</div>

Closed on January 30, 2024, 11:22am UTC


