Adding dynamic task at runtime

Is there any API through which I can Add Task dynamically in running process ? For eg: Earlier there were 5 task and I want to introduce 6th and 7th task at runtime.

Not sure if this would help you but there is a class here:

As well as a test that may help with how to run it:

Thanks for the quick reply ! Will explore and get back to you in case of any issues.

@SantoshiP
Hi Santoshi, were you able to achieve adding task dynamically other than usertask?