cancel
Showing results for 
Search instead for 
Did you mean: 

Access form variables with java

fabiangambetta
Champ in-the-making
Champ in-the-making

Hi, I'm new to activiti,

I am creating a process and I want the execution of a task with java code to obtain the variables of a form and store it in an external database.Someone could give me an example of how to read the variables, I should use an eventlistener, tasklistener?

thanks

1 REPLY 1

gdharley
Elite Collaborator
Elite Collaborator

Form variables will automatically be stored as process variables on submission of the form, this is true for community and enterprise edition.

Therefore, you can use a simple service task to call your persistence class.

Cheers,

Greg