Hello everyone,
I’m encountering an issue with handling a Flowable DataObject. I need to modify its payload during the process execution, but without saving these changes to the database.
My use case involves dynamically adding fields to the JSON within the process. However, these modifications do not seem to appear, even when I configure the DataObject search to save as a copy. Ideally, I want to edit the data temporarily for processing purposes, but ensure that the original database entry remains unchanged.
Has anyone faced a similar issue or found a workaround for this? Any insights would be greatly appreciated!
Thanks in advance!
hmm … u can avoid saving intermediate changes by using transient or local variables instead of a persistent DataObject, bs: parse the JSON
into a transient variable
, modify it in-memory
, and only when you’re ready, copy the final version back into the DataObject
1 Like
Hi Pavelevich,
Thanks for your reply! I managed to get it working with Groovy code. I appreciate your help!
The main challenge was that I needed a structured, nested list with categories and text lists that had to be modifiable. On top of that, my form was quite deeply nested, so I figured this approach might be the best way to keep things manageable. But honestly, I’m not entirely sure—at least it works now! 
Thanks again for your support!