How to recover variables after the execution of the process?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2011 02:34 PM
I'm trying to retrieve the variables of a process that has no "waitState" task. But an error occurs because the process instance is already closed.
ProcessInstance processInstance = runtimeService.startProcessInstanceByKey(processName, parameters); Map<String, Object> variables = runtimeService.getVariables(processInstance.getId());
Is there any other way to recover the process variables?
Thanks!
- Labels:
-
Archive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2011 03:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2011 01:08 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2011 01:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2011 02:38 PM
My code:
ProcessInstance processInstance = runtimeService.startProcessInstanceByKey(processName, parameters);
List<HistoricDetail> historicList = historyService.createHistoricDetailQuery()
.variableUpdates().processInstanceId(processInstance.getId())
.orderByVariableName().asc().list();
But the list "historicList" is always empty.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2011 02:54 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2011 03:25 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2011 03:45 PM
Thanks for your help! I solved the problem!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2011 05:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2011 03:11 PM
Right! You guided me so that I could solve the problem.
Thank you!
