Get parent process

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Maarten
    Member
    • Jun 2020
    • 74

    #1

    Get parent process

    Hi,

    Does anyone know if it's possible to retrieve the parent process id or name from within a BPM flow?

    I have one flowchart call another. I want to know from the second flowchart which was the first flowchart that triggered it.

    I have tried:

    Code:
    bpm\processEntity\attribute('rootProcessName') --> null
    bpm\processEntity\attribute('parentProcessName') --> null
    rootProcessName --> null
    parentProcessName --> null
    i'm not sure it's possible? Although I can see in the json returned to the page that these values exist.
  • Maarten
    Member
    • Jun 2020
    • 74

    #2
    Ah, it seems the rootProcessId and parentProcessId are available, but not their name. I guess these are not stored.

    The name can then be retrieved using:

    Code:
    $name = record\attribute('BpmnProcess', '686e62a6456f96387', 'name');
    Last edited by Maarten; 07-09-2025, 12:41 PM.

    Comment

    Working...