I have an issue, close to this one How can I get parent's process instance id from call Activity (sub-process), but not exactly the same, just because I’m starting my workflow with a message…
My basic need is to cancel an instance, I want the process instance id of a workflow. Above, my workflow, very simple.
I want to have the process instance id of this workflow, but all my workers are in the sub-process, so I’m getting the id of the child instead of the parent.
And, because I want to start my workflow with a message which contains a correlation key, I don’t have any instance id when I start my workflow.
So, have you an idea how I can get the parent process instance id, without any worker in my parent workflow ?