cancel
Showing results for 
Search instead for 
Did you mean: 

Store list of JPA entities in execution context?

stefanr2
Champ in-the-making
Champ in-the-making
It doesn't seem to be possible to store a list of JPA entities in a workflow context at the moment. Storing a list works if containing elements are serializable. Storing single JPA entities works, too.

What do you think about this? Does it make sense? Looking at the code one would need another VariableType that does the handling. Before starting to dig deeper into this I would like to hear others opinions.

As a workaround I currently store a list of entities ids.

Thanks & Regards,
Stefan.

P.S.: The forum search is annoying. When searching for terms like "jpa", "list" etc. a warning is displayed that the keyword is too short (3 chars). 😞
2 REPLIES 2

frederikherema1
Star Contributor
Star Contributor
Creating a new VariableType is indeed the way to go, inspired by the existing JPAVariableType and reusing the same EntityManagerSession and it's factory…

stefanr2
Champ in-the-making
Champ in-the-making
Ok, I filed an enhancement request with patch plus test: http://jira.codehaus.org/browse/ACT-858