# How to connect Form costum Outcomes to gatway expression

**URL:** https://forum.flowable.org/t/how-to-connect-form-costum-outcomes-to-gatway-expression/251
**Category:** Flowable Application
**Created:** [February 3, 2017, 3:35pm UTC](https://forum.flowable.org/t/how-to-connect-form-costum-outcomes-to-gatway-expression/251 "2017-02-03T15:35:51Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![belarmino.silva](https://avatars.discourse-cdn.com/v4/letter/b/3d9bf3/32.png) [@belarmino.silva](https://forum.flowable.org/u/belarmino.silva)
#### Post date: [February 3, 2017, 3:35pm UTC](https://forum.flowable.org/t/how-to-connect-form-costum-outcomes-to-gatway-expression/251/1 "2017-02-03T15:35:51Z")

</div>

I’m newbie in flowable, my problem is how to connect form costum outcomes buttons with a gatway sequences.

---

<div class="post-metadata">

### Author: ![belarmino.silva](https://avatars.discourse-cdn.com/v4/letter/b/3d9bf3/32.png) [@belarmino.silva](https://forum.flowable.org/u/belarmino.silva)
#### Post date: [February 3, 2017, 4:14pm UTC](https://forum.flowable.org/t/how-to-connect-form-costum-outcomes-to-gatway-expression/251/2 "2017-02-03T16:14:18Z")

</div>

Soluction [https://community.alfresco.com/thread/225538-unable-to-use-custom-outcomes-in-process](https://community.alfresco.com/thread/225538-unable-to-use-custom-outcomes-in-process)

---

<div class="post-metadata">

### Author: ![PHH](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/phh/32/94_2.png) [@PHH](https://forum.flowable.org/u/PHH)
#### Post date: [February 3, 2017, 4:38pm UTC](https://forum.flowable.org/t/how-to-connect-form-costum-outcomes-to-gatway-expression/251/3 "2017-02-03T16:38:38Z")

</div>

In the default Flowable 6, you can test a form outcome with a variable named using the key you gave for the form. So, if the key for your form is ‘myform’ the variable to test is form\_myform\_outcome. In a flow condition, you can use something like ${form\_myform\_outcome == “Approve”}

If you had the following process:

![](https://cdck-file-uploads-canada1.s3.dualstack.ca-central-1.amazonaws.com/flex035/uploads/flowable/original/1X/4323e6c869b7ac0ee440ec32615c70bb8490d28f.png)

And created a referenced form from the Start event:

![](https://cdck-file-uploads-canada1.s3.dualstack.ca-central-1.amazonaws.com/flex035/uploads/flowable/original/1X/43e0f94c0949039ce235fa37b32d70da9051c69d.png)

With these outcomes:

![](https://cdck-file-uploads-canada1.s3.dualstack.ca-central-1.amazonaws.com/flex035/uploads/flowable/original/1X/69fe544d58a1df0d9552defe6cbd234bbf1ea56a.png)

You can set the flow conditions on the connectors from the gateway to something like:

![](https://cdck-file-uploads-canada1.s3.dualstack.ca-central-1.amazonaws.com/flex035/uploads/flowable/original/1X/4e2ad7adf8628ba6425c35efe8645ef1c9939c9c.png)

---

<div class="post-metadata">

### Author: ![belarmino.silva](https://avatars.discourse-cdn.com/v4/letter/b/3d9bf3/32.png) [@belarmino.silva](https://forum.flowable.org/u/belarmino.silva)
#### Post date: [February 3, 2017, 5:04pm UTC](https://forum.flowable.org/t/how-to-connect-form-costum-outcomes-to-gatway-expression/251/4 "2017-02-03T17:04:30Z")

</div>

Thanks for your help @PHH

---

<div class="post-metadata">

### Author: ![pstapleton](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/pstapleton/32/678_2.png) [@pstapleton](https://forum.flowable.org/u/pstapleton)
#### Post date: [March 2, 2017, 7:54am UTC](https://forum.flowable.org/t/how-to-connect-form-costum-outcomes-to-gatway-expression/251/5 "2017-03-02T07:54:52Z")

</div>

This information was very useful. Is it written somewhere in the Flowable documentation?

I started by looking at [http://www.flowable.org/docs/userguides/userguide-form/index.html](http://www.flowable.org/docs/userguides/userguide-form/index.html) but found no references to form outcomes. (there ís actually no documentation at all regarding the modeler or task apps on that page)

---

<div class="post-metadata">

### Author: ![tijs](https://avatars.discourse-cdn.com/v4/letter/t/bc79bd/32.png) [@tijs](https://forum.flowable.org/u/tijs)
#### Post date: [March 2, 2017, 12:26pm UTC](https://forum.flowable.org/t/how-to-connect-form-costum-outcomes-to-gatway-expression/251/6 "2017-03-02T12:26:18Z")

</div>

Hi,

The UI apps are documented here (in a basic way):

[http://www.flowable.org/docs/userguides/userguide/index.html#flowableUIApps](http://www.flowable.org/docs/userguides/userguide/index.html#flowableUIApps)

Best regards,

Tijs

---

<div class="post-metadata">

### Author: ![srallapally](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/srallapally/32/2646_2.png) [@srallapally](https://forum.flowable.org/u/srallapally)
#### Post date: [November 29, 2024, 1:39am UTC](https://forum.flowable.org/t/how-to-connect-form-costum-outcomes-to-gatway-expression/251/7 "2024-11-29T01:39:55Z")

</div>

Hey all,  
Using 6.8.1 Flowable open source and following @PHH suggestion above.

org.flowable.common.engine.impl.de.odysseus.el.tree.TreeBuilderException: Error parsing ‘${form\_myform\_outcome == “Reject”}’: lexical error at position 25, encountered invalid character ‘“’, expected expression token  
at org.flowable.common.engine.impl.de.odysseus.el.tree.impl.Builder.build(Builder.java:108) ~[flowable-engine-common-6.8.1.jar:6.8.1]  
at org.flowable.common.engine.impl.de.odysseus.el.tree.TreeStore.get(TreeStore.java:61) ~[flowable-engine-common-6.8.1.jar:6.8.1]

Just wanted to say that making it single quotes instead of double worked. Just in case someone is looking for a solution
