Change parent of elements

Hello,

is there any easy way to change the parent of an existing element?

What exactly would you like to accomplish and why? Could you share some more details?

I have elements (like Tasks, Sequence Flows, Subprocesses) and I want to create a new Subprocess and have all elements with their connections in the new Subprocess

I tried moveElements but this will delete all sequence flows