kstateful is your ksession.
kstateful
You must add the code I have provided before you do ksession.startProcess(....);
Reply to this message by going to Community
Start a new discussion in jBPM at Community