cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti Explorer 5.19 : Persisting form properties without task complete

saurabhk
Champ in-the-making
Champ in-the-making
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.
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
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)