How to connect Form costum Outcomes to gatway expression

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

2 Likes

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

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:

And created a referenced form from the Start event:

With these outcomes:

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

1 Like

Thanks for your help @PHH

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 but found no references to form outcomes. (there ís actually no documentation at all regarding the modeler or task apps on that page)

Hi,

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

http://www.flowable.org/docs/userguides/userguide/index.html#flowableUIApps

Best regards,

Tijs

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