Thanks for your reply,
The variable element is only dealing with variables copy from the super process to the sub one :( . I was looking for a simple way to initialize the subprocess instance's key by using the super process instance's one.
I could handle this issue by implementing 2 handlers, listening to the subprocess creation event and to the process start event in the subprocess.
The first copies the key into the variable map, and the second uses the "key" variable to set the instance's key
What you could do is creating a custom ActionHandler which initilises the subprocesss using the variables of the superprocess.
The disadvantage is that the superprocess won't be triggered when the subprocess has finished, but if that's ok I think the easiest solution is the actionHandler
Thanks a lot for your replies.
that's what I did.