Hi Team,
In my process one of the process triggered unwanted scenarios and if I want to check parent process for the process. But I am unable to find it due to start process triggered the process. Do you know any other way to find the parent process Id or process name. (only for start process). Subprocess we can do by parentprocessid function.
Thanks,
Pradeep Sridharan
Discussion posts and replies are publicly visible
Did you try using the parent_process_id() function?
docs.appian.com/.../Process_and_Report_Data.html
Mathieu Drouin
Thanks for your response.
parent_process_id() function - Returns the ID of the parent process of this process. Returns "null" if this process is not a sub-process.
Its not working for start process.
Regards,
I don't know of any way of doing this for the start process node. Only way would be to run a process report with a search for a PV that is found in both processes.
Not sure if this helps, but may be in future can we have an additional parameterized variable that defines if the process has been triggered by a startProcess and would use this value in the process Display name?
IN that case add a parameter with the value of the parent process...
I agree with the prior suggestions of passing it in as a parameter if you need it. Can you tell us anything more about your use case for needing it from the process called via Start Process node?
Pradeep Sridharan There isn't a built-in way to directly track the parent process Id for subprocesses launched by a start process.There are strategies you can implement during process design to improve in future.When launching a subprocess from the start process, consider passing relevant data as input parameters.You can set dynamic name of process using parent process data to track back easily.
Agree your point, However the process developed and already in prod, without any parent process variable handling. Also calling start process so we unable to see which parent process triggered.
Hi ,
Yes, even I am suppose to say the only way we can add the parameter or process display name to do it. However the process already in prod and facing some issues in the infight's. For that issue tracing purpose I want to check which parent process has triggered.
Pradeep
Hi Konduru Chaitanya ,