I'm currently trying to get the name of the parent BPD to a system task.
We have 'BPD A' (main process), that drops in to 'BPD B' (sub process) and within the sub-process we have a step called, let's say "Send Message" which implements a system task service. At a point in the service I want to get the name of the BPD ('BPD B') that invoked the service.
Basically 'Service B' is going to be a re-usable Toolkit component and could be called from a number of different sub processes in various process apps. We want to generically get the name of the parent BPD - essentially "I was called by...X"
I have tried various combinations within the tw.system namespace (currentTask / currentProcess / currentProcessInstance) and all I can seem to retrieve is either the name of the main BPD ('BPD A' - tw.currentProcess.name) or the actual step name as the service box is named within the sub-process BPD ("Send Message" - tw.system.currentTask.processInstanceStep.name).
Essentially I would like to get something like 'currentTask.parentBPD.name' but I'm beginning to think this isn't even possible. I seem to only be able to get the step name or the instance name, but not the current sub-process name.
Does anyone know of a way to get this information at run-time? I don't mind if I need to get some GUID and call an API to retrieve the details of it, or if I'm just completely missing where this name is stored...