I think that you can pass the StatefulKnowledgeSession to a constructor of your custom WorkItemHandler and then in executeWorkItem(WorkItem i,WorkItemManager m) method calls:
ksession.getProcessInstance(i.getProcessInstanceId());
Hope this is helpful.