Camunda Subprocess


Hi, i have been wondering if i am doing something wrong. I start my process and after i complete my first user task it seems that my sub-process is not starting because my process just ends. Is there something i am not writing? I start my process:

    ProcessInstance pi = runtimeService.startProcessInstanceByKey(BpmConsts.MAIN_PROCESS_NAME, processParams);
    tc.setProcessInstanceId(pi.getProcessInstanceId());

After this i just setVariables after completeting the user Task and the process was working before i added subprocess. Did i forget to start anything? Like some command that would start a subprocess?

Can you upload your model?