Take a look at HumanTaskExample in jbpm-examples module for a start:
https://github.com/droolsjbpm/jbpm/blob/master/jbpm-examples/src/main/java/org/jbpm/examples/humantask/HumanTaskExample.java
Looks like you are never creating your TaskClient
Reply to this message by going to Community
Start a new discussion in jBPM Development at Community