How to send a simple data from instantiation form to a process variable ?

Hi all,

I’ve an instantiation form with a simple input widget as “mail”
and I’ve a process variable like “email” with a text type.

My question is how to transfert the value written in instanciation form to process variable please ?

Thanks in advance.

1 Like

Hello Yannick

An instantiation form is the form before the Start Event. If you select the pool and go to the Details panel, Execution tab, just under Contracts pane you’ll find instantiation form.

I’ve created an instantiation form with UI Designer where I display a data from a contract. When the user enter a value and submit this form, how can I to get this data further in the process for to display it in another humaun task for example ?

Thanks in advance.

What did you call an “instantiation form” ?

What is the version of Bonita BPM that you use ?

I’ve just found, in version 7 to get values we have to get them by Extrenal API like here
I’ve solved my problem.

Thanks.

Can you explane more your solution. I’m trying the same but my ref_link is empty. I think that the taskid is wrong. How did you get the taskid in the variables.

I think the taskid is not a problem here.
If you have an instantiation form mapped with a contract, just see if you have initialized your variables with a script like here if this point is not done, you’ll get a null. And you’ve to initialize all variables of your business object.
Check out if you’ve not a mistake in variables’s declaration in your script or in your form.

hope that helps.
Sorry for my bad english :wink:

thank you very much. I did skip this step because i thought it was only to set default values on my new form.
Didn’t know it also gets the values from the initial form.

Hello Gunther

it works nows ?
your welcome

I just tried it, and it works perfectly. Small things :slight_smile:
The next thing i want to accomplish is : i have a mysql DB and i have created a connector that gets a list of values. I want to use this list as a possible value in a select list in my form.
The connector is created an i store the values in a java object list.
Now how do i get the values in the select list ? I have tried with putting the name of the object in the select list possible values but nothing happens. Any suggestions :slight_smile:

I’m interesting by the same step but I don’t how to do this but I suggest to you to create an other topic with your subject. Maybe there are many who are interested by this question and without any doubt you’ll get an answer !

:wink: