Skip to main content
seenivasaganp0003
New Participant
Aug 2, 2023 1:39 AM UTC
Question

What is the best and efficient way if I have a process id to use process report or use process info to get the status of the process

Hi,

Question for the community.

I have a process id and which is the efficient way to find the process status.

I don't need any other info from the status only whether it is completed or now.

3 replies

mathieud0001
Genius
Aug 2, 2023 3:05 AM UTC
seenivasaganp0003
New Participant
Aug 2, 2023 4:52 AM UTC

Maybe I didn't articulate my question correctly. 

I have the process id. I want to know the status of the process whether that is still in progress.

There are two ways I have seen this implemented.

1. build a process report and pass the processid to get the status of the process.

2. user getprocesinfohistory(from get process info history plugin) to see whether the last node on the process has been completed.

which one of the above two will be efficient. I see people say getprocesinfohistory was better. 

I would like to know what the community thinks.

stefanhelzle0001
Brainy
Aug 2, 2023 6:41 AM UTC

In general, I try to minimize usage of plugins and would go with a process report.