Am new to Flowable engine, please bear with me if my question is amateur.
So I know we can start a process instance by passing json variables.
For example, consider this json
In a particular scenario, I wanted to update the existing field in the json variable from the flow using a execution listener which has the following expression
I see that the json variable gets modified but not persisted, because I can’t see the modified value once the transaction is committed (either because of a async service task or timer event).
I did some debugging and saw when the variable is modified using the execution listener, its getting set in the cachedValue but not in the textValue of VariableInstanceEntity and is not getting persisted.
But the above method worked when I set a new field inside the same json.
For example this expression persisted the serviceId field inside the json and was available for the subsequent flows.
I can look for workarounds, but I just wanted know whether this behavior is on purpose or any particular reason.