Setting parent ID

I’m using flowable engine api with java spring boot. I have a process that contains sub processes which have several tasks. the problem is when the tasks are created automatically by the engine, it sets the parent task id with null. Is there like an option when initiating the process to enable setting the parent id for the tasks automatically or how can i pass parent Id to sub processes?