Add FormData after ProcessInstance has been created.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-05-2011 04:59 PM
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!
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!
Labels:
- Labels:
-
Archive
3 REPLIES 3

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-06-2011 02:53 AM
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,
Or why don't you set it as a process variable in the first service task?
Best regards,

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-06-2011 11:07 AM
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!
So to add parameters to the start of the process, are you suggesting to use the FormService.submitStartFormData()?
Thanks for your help!

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-07-2011 04:15 AM
Hi,
Using FormService.submitStartFormData is one way.
Another way would be to use RuntimeService.startProcessInstanceByKey(key, variableMap)
Best regards,
Using FormService.submitStartFormData is one way.
Another way would be to use RuntimeService.startProcessInstanceByKey(key, variableMap)
Best regards,
