Yes there is an API for doing exactly that, If I don't remember wrong you can look for something called TaskMGMTService, or something like that, I'm pretty sure that it is explained in the docs..
Did you check my book about jBPM I cover that as well.
Cheers