AnsweredAssumed Answered

Enforce variable values to be Serializable?

Question asked by sjoerges on Mar 14, 2012
Hi,

sorry if this question has already been asked, but I could not find it in the forum.

Regarding the engine API, I wondered why all methods having to do with variables (e.g. "RuntimeService.getVariables") deal with "Map<String, Object>". After reading the posts on the forum and given the fact that Activiti has to serialize all those variables to the database, I got the impression that only serializable values would make sense here, that is, I would have expected something like "Map<String,? extends Serializable>". What is the reason for being less restrictive here?

Cheers,
Sven

Outcomes