cancel
Showing results for 
Search instead for 
Did you mean: 

Add FormData after ProcessInstance has been created.

whelmingbytes
Champ in-the-making
Champ in-the-making
Hi,

I am having a hard time finding out how to add form data to a process or task after they have already been completed. In my scenario, I have a process that has already been started, and I need to add data (kind of like global data) to the process to look it up later and make decisions based on that data.

Can someone point me in the right direction or provide an example of how to do this?

Thanks!
3 REPLIES 3

trademak
Star Contributor
Star Contributor
Why don't you set these values when starting the process instance?
Or why don't you set it as a process variable in the first service task?

Best regards,

whelmingbytes
Champ in-the-making
Champ in-the-making
This should work for most of our business needs, but I think for a small part of the time, this will not work.

So to add parameters to the start of the process, are you suggesting to use the FormService.submitStartFormData()?

Thanks for your help!

trademak
Star Contributor
Star Contributor
Hi,

Using FormService.submitStartFormData is one way.
Another way would be to use RuntimeService.startProcessInstanceByKey(key, variableMap)

Best regards,