Hi,
Try with following steps:
- Create a variable in the parent process, clicking in an empty space in the parent process canvas and adding an attribute to "Variables Definitions" in the Properties tool bar (right side menu bar), naming it, for example, "processInstanceId"
- Clicking on the Reusable SubProcess Node, define a dataInputSet which will be mapped to a process variable in the subprocess - let's call it "parentProcessInstanceId"
- Create a map for "processInstanceId" to "parentProcessInstanceId", it is done by the Assignments property, there you define this kind of mapping.
~~
FromObject: processInstanceId
Assignment Type: is mapping to
ToObject: parentProcessInstanceId
~~
- Create a process variable in the sub process, opening that process, and defining a new local Variable Definition using the same name ("parentProcessInstanceId") used in the DataInputSet in the subprocess node in parent process.
Hope it helps..