Skip to main content
satheeshrajam0003
September 2, 2022
Solved

How to find task status by taskId

  • September 2, 2022
  • 9 replies
  • 0 views

I dont want to create task report and queryprocessanalytics to do get the status. Is there any other easy way of getting it? 

9 replies

stefanhelzle0001
September 2, 2022

That is the default way of doing this. Is there a specific reason you want to avoid this?

satheeshrajam0003
September 2, 2022

I need this feature in various part of my applications. So looking for an direct function (may be supported by some plugins). 

stefanhelzle0001
September 2, 2022

I would create a process report and an expression which returns that status for a given task id. May I ask where you get that task id from?

What is your overall use case?

September 3, 2022

The easiest way of doing this is by using Task Report and queryprocessanalytics functions. You can create a task report which will be generic report with All task Context and from the report you can get the status based on taskID, You can create seperate expression rule which will take taskId as an input and in that expression rule you can use queryProcessAnalytics function and it will return the status of the particular taskId.

shikhat
September 4, 2022

Use Gettaskstatus function and pass task id

satheeshrajam0003
September 4, 2022

Can you name the plugin that has the function? 

shikhat
shikhatAnswer
September 4, 2022