You should use ContentMarhsallerHelper class to serialize task content, take a look here for an example code how to do it.
HTH
Reply to this message by going to Community
Start a new discussion in jBPM at Community