Shashwat, I don't quite get what the problem is. The process-state automatically creates the sub-process instance and sets the super-process token appropriately. The sub-process instance also signals the super-process token when it ends. You should not be doing this yourself.