Tasks are created by jBPM when execution of a process definition arrives at a <task-node>. Check the ordermanagementx.jbpl.xml files.
Thanks quick replay. I understand the creating timing. But another question is who integrates tasks and task valiables. In dvd example amout and customer variables are related tasks. I wonder if what part of code does that or there is specific rules.