# Configuring an exclusive transition gateway.

**URL:** <https://community.ofelia.com/t/configuring-an-exclusive-transition-gateway/8969>\
**Category:** Q&A\
**Created:** [22 February 2018 14:20 UTC](https://community.ofelia.com/t/configuring-an-exclusive-transition-gateway/8969 "2018-02-22T14:20:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![michieka.omete\_13484](https://avatars.discourse-cdn.com/v4/letter/m/6bbea6/32.png) [@michieka.omete\_13484](https://community.ofelia.com/u/michieka.omete_13484)\
**Post date:** [22 February 2018 14:20 UTC](https://community.ofelia.com/t/configuring-an-exclusive-transition-gateway/8969/1 "2018-02-22T14:20:24Z")

</div>

Hello there, am using Bonitasoft 7.5.2 version and i have issue with my gateways. The end result always gives me 1 output result i.e as an email connector output (Default transition). I have use examples like vacation request but same results.Kindly help.

Regards  
Michieka

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/community_bonitasoft/original/2X/6/6b7b18c0478f2645369e82e009b65e3b97f2cc12.svg) [@system](https://community.ofelia.com/u/system)\
**Post date:** [22 February 2018 15:26 UTC](https://community.ofelia.com/t/configuring-an-exclusive-transition-gateway/8969/2 "2018-02-22T15:26:51Z")

</div>

What kind of transitions are you setting for each of the paths? Comparisons? Scripts? It sounds like none of the other transitions are evaluating to true hence the use of the default path.

---

<div class="post-metadata">

**Author:** ![michieka.omete\_13484](https://avatars.discourse-cdn.com/v4/letter/m/6bbea6/32.png) [@michieka.omete\_13484](https://community.ofelia.com/u/michieka.omete_13484)\
**Post date:** [23 February 2018 06:15 UTC](https://community.ofelia.com/t/configuring-an-exclusive-transition-gateway/8969/3 "2018-02-23T06:15:46Z")

</div>

I am using comparison condition on one transition and the other one is a default. Am i supposed to write some scripts on the comparison?

Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/community_bonitasoft/original/2X/6/6b7b18c0478f2645369e82e009b65e3b97f2cc12.svg) [@system](https://community.ofelia.com/u/system)\
**Post date:** [23 February 2018 15:01 UTC](https://community.ofelia.com/t/configuring-an-exclusive-transition-gateway/8969/4 "2018-02-23T15:01:47Z")

</div>

A comparison expression uses logical operators on variables, parameters, or constants to determine whether the transition is taken (this is taken straight from the Bonitasoft documentation). You’ll need to provide the comparison in the form of a simple script to return a boolean. Would you mind posting the comparison script here?

---

<div class="post-metadata">

**Author:** ![michieka.omete\_13484](https://avatars.discourse-cdn.com/v4/letter/m/6bbea6/32.png) [@michieka.omete\_13484](https://community.ofelia.com/u/michieka.omete_13484)\
**Post date:** [26 February 2018 08:09 UTC](https://community.ofelia.com/t/configuring-an-exclusive-transition-gateway/8969/5 "2018-02-26T08:09:52Z")

</div>

comparison script, **yesApproval==true** where the yesApproval is a process variable and the other transition is set to default.  
Regards

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/community_bonitasoft/original/2X/6/6b7b18c0478f2645369e82e009b65e3b97f2cc12.svg) [@system](https://community.ofelia.com/u/system)\
**Post date:** [1 March 2018 13:37 UTC](https://community.ofelia.com/t/configuring-an-exclusive-transition-gateway/8969/6 "2018-03-01T13:37:22Z")

</div>

Looks good. Make sure yesApproval gets populated at some point in a contract.
