cancel
Showing results for 
Search instead for 
Did you mean: 

Using java.util.List objects as process variables

ovunccetin
Champ in-the-making
Champ in-the-making
Hi everyone,

I am trying to save a java.util.List value (a list of serializable objects) into the process variables. The Activiti engine writes the list into the bytearray table. But when the list contains more than one items, the engine adds a new row to the byte array table instead of updating the previously added blob value. When I access this variable then via runtimeService.getVariable("executionId","varName") call, a list with only one item (the item which is firstly added) is returned. Do you know something about this issue?

Thanks in advance.
3 REPLIES 3

frederikherema1
Star Contributor
Star Contributor
Can you create a unit-test for this (simple process)? This way it's easier to reproduce this.

ovunccetin
Champ in-the-making
Champ in-the-making
It runs properly in test. But the problem still exists when I tried in server application.

jbarrez
Star Contributor
Star Contributor
What do you mean with 'it runs in the unit test'.

Did you test setting, changing and getting the process variable? What is the difference with the server deployment?