I still don't understand why you want to execute a command on an HT but, if you want to achieve that you should do:
ksession.getWorkItemManager().registerWorkItemHandler("Human Task", handler);
That will print the string that you want.
Cheers
Reply to this message by going to Community
Start a new discussion in jBPM at Community