cancel
Showing results for 
Search instead for 
Did you mean: 

Process variables aren't persisted with last values

alexisgc
Champ in-the-making
Champ in-the-making
Hello,
In my process definition I'm invoking a sub-process, this sub-process has a UserTask, I would like that my variables were saved into Activiti tables with the values previously to the UserTask invokation,  but Activiti is saving the variables with the values assigned when create and execute the processInstance.
Please could you tell me if I have to do any configuration to solve this problem? Thanks in advance.

Alexis
2 REPLIES 2

frederikherema1
Star Contributor
Star Contributor
Hi,

The execution of the process runs in a single transaction and stops until a wait-state is reached or process ends. The variables are only flushed to the DB when the process stops executing (wait-state, end, …). So you are trying to access the variables for the parent-process inside the user-task?

tombaeyens
Champ in-the-making
Champ in-the-making
access to services api is not supported from within delegation classes.
probably you need to copy the data form the superprocess into the subprocess.  i believe that feature is only being implemented atm.