Skip to main content
April 18, 2024
Question

Is there any way to find the parent process Id for the start process

  • April 18, 2024
  • 16 replies
  • 1 view

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

16 replies

mathieud0001
April 18, 2024

Did you try using the parent_process_id() function?

docs.appian.com/.../Process_and_Report_Data.html

April 18, 2024

 [mention:f5e81b8502fa4e77ad12697686a4fc56:e9ed411860ed4f2ba0265705b8793d05] 

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,

Pradeep Sridharan

mathieud0001
April 18, 2024

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.

konduruc733182
April 18, 2024

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?

April 18, 2024

Hi [mention:2df2892a4df7486f9775b4d2f0e405fd:e9ed411860ed4f2ba0265705b8793d05] ,

Thanks for your response.

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.

Regards,

Pradeep

mikes0011
Brainy
April 18, 2024

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?

April 18, 2024

Hi [mention:b45a4f6a20b14a008e4e0ec732a8bf98:e9ed411860ed4f2ba0265705b8793d05] 

Thanks for your response.

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.

Regards,

Pradeep

mikes0011
Brainy
April 18, 2024
For that issue tracing purpose I want to check which parent process has triggered.

You haven't shared many details here about what data your parent (calling) process might have in common with the process facing errors, however if there are any pieces of data that can generally pinpoint what parent might have called a certain instance, you should be able to design a custom Process Report and surface that data in one or more displayed columns, then query the parent instances using Query Process Analytics to try and determine matches.

You haven't said what you ultimately plan to do with the parent instances (if anything) or even if they're still active, but this might give you a start.

shubhama926776
Brainy
April 18, 2024

[mention:d742719d472149a6a29b6d2bfb1900f0:e9ed411860ed4f2ba0265705b8793d05] 
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.


April 18, 2024

Hi [mention:dea33493db6342c9a73dc108d45120c0:e9ed411860ed4f2ba0265705b8793d05] ,

Thanks for your response.

Yeah agree your point. The process already developed and in prod. For some scenarios facing the issues and want to check some process which parent process has triggered so that reason I want the parent process Id.

Regards,

Pradeep

shubhama926776
Brainy
April 18, 2024

 [mention:d742719d472149a6a29b6d2bfb1900f0:e9ed411860ed4f2ba0265705b8793d05] 
In the past, we ran into this problem. We can investigate by looking at the main process's timestamp when it started. If we find subprocesses with timestamps around that time, and examine their data, there might be a connection. This approach takes a bit longer, but you can try it.

Let me know if that works for you.

harshk1671
April 19, 2024

As this is in production you may use IFM Manager plugin 'https://community.appian.com/b/appmarket/posts/ifm-manager'. But agree with other peers answers that can be implemented in lower environments by passing a PV.