Activiti Explorer 5.19 : Persisting form properties without task complete
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2016 08:09 AM
Looking at the existing flows (in Activiti Explorer 5.19 code base) the form properties are submitted through " handleFormSubmit(FormPropertiesEvent event) " in TaskDetailsPanel.java which is ok for most of the flows. However one of the user task could be of a longer duration (2-3 months), during which the user can keep on filing the details (some financial calculations) as the tasks progresses.
We don't want to loose the entries, in case application goes down. Hence looking to persist these entries in DB via a "Save" button. Just setting the process variables using the below may only help if the application remains up (is this understanding correct ?) -
runtimeService.setVariable(task.getProcessInstanceId(), "myVar", "someData");
taskService.setVariableLocal(task.getId(), "myVar", "someData");
Please provide some pointers for this scenario.
We don't want to loose the entries, in case application goes down. Hence looking to persist these entries in DB via a "Save" button. Just setting the process variables using the below may only help if the application remains up (is this understanding correct ?) -
runtimeService.setVariable(task.getProcessInstanceId(), "myVar", "someData");
taskService.setVariableLocal(task.getId(), "myVar", "someData");
Please provide some pointers for this scenario.
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2016 04:10 AM
We don't have such a save button, but indeed, you would have to set the variables like that to store them (and they will show up in the form afterwards if they have a value)
