Does variable history is the same for a diferent process?

Hi,

Considering one case with 2 Process Tasks. There is a variable VAR1, that is created by Proc1 and update by Proc2.


Does the history considere that it is the same variable and register all changes from different process ?

PS: It is used the same variable name in In/Out Mapping with local=false.
In my tests, the original variable history were lost in Proc2 and a new one variable history is created.

When you say lost, do you mean lost at the case level or inside of process two?

Your case should have a variable history
And each proc should have their own variable instances. The case could be used as a shared instance.

Also have you thought about storing your variable in another db? Like a redis instance? Take a look at: Storing process variables: Json (Spin) vs. String / what are the impacts?. This is a redis example that you could easily implement to store your variable lifecycle without any of the “unique” “character” provided by camunda variable system.