AnsweredAssumed Answered

java.io.Serializable support for ACT_ID_INFO

Question asked by pkonyves on Sep 26, 2014
I would like to add serializable support for identity info: to have a reference to a key in ACT_GE_BYTEARRAY table, because the 255 chars long VALUE_ column cannot hold much in ACT_ID_INFO. (I could change our DB schema to hold more, but that does not seem very maintainable)

I don't think it would be a huge task, so I'd like to ask about your opinions before I start working on it, and get a rejected pull request :)

My concern is how to reflect the changes in the IdentityService interface without breaking the API.

I thought of changing the method signature of setUserInfo, that does not harm:

/** Generic extensibility key-value pairs associated with a user */
  void setUserInfo(String userId, String key, String value);
 
  // to:
  void setUserInfo(String userId, String key, Serializable value);
<code>

Then introduce a new method next to getUserInfo to retrieve serializable user info:
<code>
   Serializable getSerializableUserInfo(String userId, String key);

Outcomes