# How to store data from forms then use it as flow condition

**URL:** <https://forum.flowable.org/t/how-to-store-data-from-forms-then-use-it-as-flow-condition/9102>\
**Category:** Flowable Engine\
**Created:** [March 11, 2022, 4:11pm UTC](https://forum.flowable.org/t/how-to-store-data-from-forms-then-use-it-as-flow-condition/9102 "2022-03-11T16:11:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![catwoman](https://avatars.discourse-cdn.com/v4/letter/c/e8c25b/32.png) [@catwoman](https://forum.flowable.org/u/catwoman)\
**Post date:** [March 11, 2022, 4:11pm UTC](https://forum.flowable.org/t/how-to-store-data-from-forms-then-use-it-as-flow-condition/9102/1 "2022-03-11T16:11:14Z")

</div>

hello!  
i’m creating my very first app ever, and i’m using flowable and postgree.

my app is basically a student platform that allows people to log in then to see their class schedules.  
the accounts are created via a form (flowable form) & the log in is also a form.  
i created a choice gate after the start that would send a user to “create an account” if his mail is not already registered

i noticed that all the data i enter via the forms gets stored automatically in a table called “act\_hi\_varinst”  
i want to find a way to store this data, then with the flow condition, compare if the entered mail exists already or not

how would that be possible ? thank you in advance!

here’s my process model (for now i’m ignoing the check wether the password is correct or not)

 ![Untitled 2](https://canada1.discourse-cdn.com/flex035/uploads/flowable/original/2X/7/79131cb3810dbf581ddcc4b4d83167fdca2d4e1d.png)

---

<div class="post-metadata">

**Author:** ![cirux88](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/cirux88/32/2421_2.png) [@cirux88](https://forum.flowable.org/u/cirux88)\
**Post date:** [March 22, 2022, 2:45pm UTC](https://forum.flowable.org/t/how-to-store-data-from-forms-then-use-it-as-flow-condition/9102/2 "2022-03-22T14:45:04Z")

</div>

> [@catwoman](#):
>
> ically a student platform that allows people to log in then to see their class schedules.  
> the accounts are created vi

Hi!  
If the login form in the first task has a field with id “password”, a process instance variable is available to you. Into the exclusive gateway you can use it into a flow condition, such as #{password != null}

For checking if the password is correct respect to your database, you should add a service task making a call to your service for checking username and password.

Hope it helps
