check this very simple example on how to use local task service, might not be exactly what you need but just a starting point.
HTH
Reply to this message by going to Community
Start a new discussion in jBPM at Community