cancel
Showing results for 
Search instead for 
Did you mean: 

Variable peristance

tcolar
Champ in-the-making
Champ in-the-making
When  I add a variable to the process using:

delegateExecution.setVariable(some, var);

Does that get automatically persisted (ie: would it still be there after restarting activiti).

Thanks.
1 REPLY 1

frederikherema1
Star Contributor
Star Contributor
The variable is persisted once the process stops "flowing", this is when the transaction is comitted. The process stops "flowing" once a wait-state is reached or the process is ended.

In case the variable was set somewhere right before the process was ended (withour waitstate in between) the variable will only exist in history table, not in runtime variable table.