# gateway

**URL:** <https://community.ofelia.com/t/gateway/10551>\
**Category:** Q&A\
**Created:** [29 December 2020 21:29 UTC](https://community.ofelia.com/t/gateway/10551 "2020-12-29T21:29:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tsop](https://avatars.discourse-cdn.com/v4/letter/t/e5b9ba/32.png) [@tsop](https://community.ofelia.com/u/tsop)\
**Post date:** [29 December 2020 21:29 UTC](https://community.ofelia.com/t/gateway/10551/1 "2020-12-29T21:29:19Z")

</div>

Hello, I am creating an process&nbsp;with two exclusive (XOR) gateways and it is a&nbsp;BOOLEAN TYPE agree or disagree&nbsp;.I have also made in BDM a business object agreement with attributes&nbsp;name and respond (agree or disagree).&nbsp;How do i give an input to that gateway and how does the the transition takes the right path .For example the script of the transition agreement.respond=agree is correct?

&nbsp;

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![Pierre-yves\_Monnet](https://avatars.discourse-cdn.com/v4/letter/p/8edcca/32.png) [@Pierre-yves\_Monnet](https://community.ofelia.com/u/Pierre-yves_Monnet)\
**Post date:** [13 January 2021 00:38 UTC](https://community.ofelia.com/t/gateway/10551/2 "2021-01-13T00:38:11Z")

</div>

Hello,

Just add in the transition a condition, like (in Groovy)

return&nbsp;agreement.respond.equals( "agree") ;

&nbsp;

Best,
