Map<String, Object> taskParams = new HashMap<String, Object>();
taskParams.put("Explanation", "Too complicated for me");
taskParams.put("Outcome", "Rejected");
// Serialized and inserted.
ContentData content = new ContentData();
content.setAccessType(AccessType.Inline);
content.setContent(getByteArrayFromObject(taskParams));
// add results of task.
taskService.complete(task.getId(), "john", content);
// test for completion and in correct end node.