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

Certified Senior Developer

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.

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Senior Developer
    in reply to Mathieu Drouin

    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.

Children