How to send data from a form to the pool variable ?

1
0
-1

Hey everybody,

I'm new with bonita and I need to set a pool variable with form input. I think I should use groovy scripts in operations tab of my task, but I don't know how to fetch data from current form and assign it to my variable.

can anyone suggest a simple code?

Thanks

1 answer

1
+1
-1
This one is the BEST answer!

Hi Ghazaa,

You need to add this variable in your task contract and add an operation to set your pool variable with the value coming from your contract.

Of course you need to make sure that your UID form will output the value in the contract (in formouput).

You will find a basic example here: https://github.com/florentsarat/exampleVarInForm

Notifications