User Story (Required on creation):
As a Tasklist user, I want the ability to store my modified state of the Tasklist form to local variables (not only to browser local storage). If another users views the form, they are able to view the current state and variables in the form.
Functional Requirements (Required before implementation):
- I can configure the behavior of the Save button in Tasklist to either save to local storage (default) or to local task variables
- The form data is correctly loaded based on that configuration
Technical Requirements (Required before implementation):
- Users can configure the behavior of the Save button in Tasklist form via Tasklist configuration
- Default behavior remains as-is, saving to the browser's local storage
- The execution of the Save button respects that configuration
- Procedure to load data into the form can handle configuration changes (from local storage to local variables and back)
Limitations of Scope (Optional):
Hints (Optional):
Currently the Save button in Tasklist forms provides the ability to save the state of the form to local storage. This is only useful when only one person needs access to the task but not ideal for task collaboration spanning multiple users.
The requirement is to have another mechanism that can populate the task form fields as local task variables. As of now, the form fields get populated into the process instance only when you complete the task.
Hey shan-96,
thanks for the feature request. This is a nice idea. I can certainly see the value in it.
I do see a potential risk with concurrent executions and setting the form values as process instance variables. Imagine filling out half a form and persisting the variables on the process instance level without completing the task. Concurrent executions (e.g. if there was a parallel gateway) would be able to see those variables already even though the task is not completed. One solution here could be to make the variables local to the task. So that means it could be done by calling https://docs.camunda.org/manual/latest/reference/rest/task/local-variables/put-local-task-variable/.
I will forward this to product management for prioritization. That said, I don't think there will be room on our roadmap to build this feature any time soon. Would you be interested in contributing? We can assist with questions and guidance during the process.
Let me know what you think.
Best,
Miklas