Avatar

Level 4

Strange since TaskInfo is the interface implemented by TaskImpl.  Must be something else going on.

Ignoring that for a moment, it might be easier to try skip getting the TaskInfo since you don't need it.  Try this:

     FormInstance formInstance = myTaskManager.getFormInstanceForTask(tid, 0); // formId is 0

     Document doc = formInstance.getDocument();