when instantiating your handler ensure that it will get access to knowledge session:
new YouHandlerImpl(ksession)
and then inside you handler, when it's done with processing use session to complete work item:
session.getWorkItemManager().completeWorkItem(workItemId, result);
HTH